Displaying 3 results from an estimated 3 matches for "delete_dir_cont".
2017 May 26
9
[Bug 12806] New: Deleting in a row of hardlinked snapshots resets file permissions.
https://bugzilla.samba.org/show_bug.cgi?id=12806
Bug ID: 12806
Summary: Deleting in a row of hardlinked snapshots resets file
permissions.
Product: rsync
Version: 3.1.0
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5
Component: core
2017 Jun 08
0
[Bug 12806] Deleting in a row of hardlinked snapshots resets file permissions.
...eed write
permission on the directory it is located in.
(Now you have to convince the "appliance" to use a patched rsync ...)
Cheers,
Lars Ellenberg
diff --git a/delete.c b/delete.c
index 88e4230..223b6d2 100644
--- a/delete.c
+++ b/delete.c
@@ -97,10 +97,10 @@ static enum delret delete_dir_contents(char *fname, uint16
flags)
}
strlcpy(p, fp->basename, remainder);
- if (!(fp->mode & S_IWUSR) && !am_root && fp->flags & FLAG_OWNED_BY_US)
- do_chmod(fname, fp->mode | S_IWUSR);
/* Save stack by recursing to ourse...
2009 Aug 13
3
DO NOT REPLY [Bug 6636] New: Deallocation of a pointer not malloced
..._printf ()
#1 0x90005f5c in free ()
#2 0x00037fd4 in uncache_tmp_xattrs () at xattrs.c:754
#3 0x00023c08 in make_backup (fname=0xbfffd118 "...") at backup.c:369
#4 0x0000bbb8 in delete_item (fbuf=0xbfffd118 "...", mode=33152, flags=17448)
at generator.c:198
#5 0x0000b970 in delete_dir_contents (fname=0xbfffd118 "...", flags=4) at
generator.c:304
#6 0x0000bab8 in delete_item (fbuf=0xbfffd118 "...", mode=16832, flags=2) at
generator.c:179
#7 0x0000c2a8 in delete_in_dir (fbuf=0x4fdf88 "...", file=0x6,
fs_dev=0x11b05e0) at generator.c:536
#8 0x00011288 in...