search for: ignore_perms

Displaying 1 result from an estimated 1 matches for "ignore_perms".

2003 Jan 02
3
Not preserving permissions really preserves some
...==================== if (!preserve_perms) { extern int orig_umask; /* set an appropriate set of permissions based on original permissions and umask. This emulates what GNU cp does */ file->mode &= ~orig_umask; <-- change this to line below file->mode = ((ignore_perms?0:0666) | file->mode) & ~orig_umask; } I used 0666 for the mask to pick up the execute bit (otherwise might screw up creating directories we can go down). I would be interested in any feedback on this problem from the maintainers. If there is any agreement on how it might be addressed and...