[Bug 823] Rename fails on fat32 partitions

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Apr 6 12:22:09 EST 2004


http://bugzilla.mindrot.org/show_bug.cgi?id=823





------- Additional Comments From dtucker at zip.com.au  2004-04-06 12:22 -------
Created an attachment (id=597)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=597&action=view)
Possible implementation for Linux

Maybe something like this (with the appropriate bits in configure plus
attachment #596) for Linux?

I don't think this would be any worse on Linux for filesystems with Unix
semantics.  You would only fall into the rename() block if the file exists but
you don't have perms.  If the file still exists at the time of the stat(),
nothing happens.  If it doesn't, the rename happens.

In particular, you can't have the case where a newly-created file is clobbered,
because you can't get into the racy section unless you get the EPERM first.

Of course, on FAT, all bets are off.



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




More information about the openssh-bugs mailing list