Thread (13 messages) flat view 13 messages, 3 authors, 2016-06-15

Re: Git changes permissions on directories when deleting files.

From: Jeff King <hidden>
Date: 2016-06-15 22:50:41

On Tue, Mar 01, 2011 at 02:57:19PM -0500, Chad Joan wrote:
quoted
Exactly. Rather than spend time figuring out if the directory is
removable (which would not be atomic, anyway), we just rmdir and ignore
the error condition.

I would argue that your filesystem is broken. Even if we implemented a
workaround to opendir() and check for files, it would still have a race
condition that could cause this situation to occur.
Ouch.

Would it work to do something like alias rmdir to a script or program
that would call /bin/rmdir and then fix up the permissions?
Well, we're using the rmdir system call, so you would need a patch to
git either way. If that was something we wanted to support (with a
config option, of course), we could do the permissions check-and-restore
ourselves.

But it just seems horribly broken to me. This is CIFS to an OpenVMS
machine you said? Do the broken permissions appear to other clients or
across a remount (i.e., is it broken state in your CIFS client, or has
the server actually munged permissions)? If so, have you tried reporting
the issue to whoever writes CIFS server on OpenVMS (is it just samba)?

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help