Overview
| Artifact ID: | b232f71166b37671e8025446428f172bb2bc27c4cc11cd94f76cbbcc0bf6019e |
|---|---|
| Ticket: | 1523045fffffffffffffffffffffffffffffffff
file cmd fails to copy to VFAT |
| User & Date: | serhiy.storchaka on 2026-10-20 21:33:41 |
Changes
- icomment:
Still present in 8.6, 9.0 and 9.1: after copying the data, <nowiki>[file copy]</nowiki> sets the mode and the times of the new file, and when that fails with EPERM (VFAT and similar filesystems) it removes the copy and reports an error. Copying a directory fails the same way and leaves a partial tree. Proposed fix in branch [/timeline?r=copy-eperm-attrs|copy-eperm-attrs], also for [731062ffff]: EPERM from <tt>chmod()</tt> and <tt>utime()</tt> of the newly created file is ignored, as cp does, so the copy is kept (without the mode or times that the filesystem cannot store). Tested with an LD_PRELOAD shim that makes these calls fail; no test in the suite, since it needs such a filesystem.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"