search for: tweak_mod

Displaying 8 results from an estimated 8 matches for "tweak_mod".

Did you mean: tweak_mode
2018 Feb 05
2
Unfortunate results from fake-super
On 05/02/18 05:53, Wayne Davison wrote: > On Sat, Feb 3, 2018 at 5:20 AM, Dave Gordon via rsync > <rsync at lists.samba.org <mailto:rsync at lists.samba.org>> wrote: > > [...fake-super symlink saved as a file...] > > This results in the copy being world-writable. > > Indeed. The file initially gets created as a mode-600 file, but the code > later
2018 Feb 06
0
Unfortunate results from fake-super
...w a daemon configuration containing both fake-super and an absolute setting for incoming-chmod to fulfil all three of the above. The logical flow for a push-to-fake-super-daemon would then be: 1. client sends filespecs, applying any local --chmod on the way 2. daemon receives filespecs, does *not* tweak_mode at this stage 3. ... data transfer as needed ... 4. daemon sets backup file attributes 4a. in fake mode, daemon saves user.rsync.%stat, then applies tweak_mode() to the local file. Daemon modes take precedence as expected. 4b. in non-fake mode, the daemon just applies the deferred tweak_mode()....
2006 Nov 10
1
Internal error: wrong write used in receiver.
Hi, I'm using 2.6.9 but I get: recv_files phase=1 generate_files phase=2 recv_files phase=2 recv_files finished generate_files phase=3 deleting in home delete_in_dir(home) [generator] make_file(home/administ,*,2) Internal error: wrong write used in receiver. _exit_cleanup(code=2, file=io.c, line=1204): entered _exit_cleanup(code=19, file=main.c, line=1182): entered rsync error: received
2006 Nov 21
1
rsync v2.6.9: small patch fixing NORETURN failures
...I've applied a small unified diff, fixing this stuff. THX for listening. CU Tom. (Thomas M.Ott) Germany -------------- next part -------------- --- rsync-2.6.9/proto.h.orig 2006-11-07 05:39:47.000000000 +0100 +++ rsync-2.6.9/proto.h 2006-11-21 21:32:26.000000000 +0100 @@ -21,7 +21,7 @@ int tweak_mode(int mode, struct chmod_mode_struct *chmod_modes); int free_chmod_mode(struct chmod_mode_struct *chmod_modes); void close_all(void); -NORETURN void _exit_cleanup(int code, const char *file, int line); +NORETURN void _exit_cleanup(int code, const char *file, int line) NORETURN2; void cleanup_disa...
2008 Apr 14
0
[PATCH] xattrs not set on locked files that already exist on target
...@ extern int dry_run; extern int preserve_acls; extern int preserve_xattrs; +extern int force_change; extern int preserve_perms; extern int preserve_fileflags; extern int preserve_executability; @@ -445,6 +446,11 @@ if (daemon_chmod_modes && !S_ISLNK(new_mode)) new_mode = tweak_mode(new_mode, daemon_chmod_modes); +#ifdef SUPPORT_FORCE_CHANGE + if (force_change) + make_mutable(fname, sxp->st.st_mode, sxp->st.st_flags, force_change); +#endif + #ifdef SUPPORT_ACLS if (preserve_acls && !S_ISLNK(file->mode) && !ACL_READY(*sxp)) get_acl(fname, sx...
2006 Mar 20
1
Rsync acl patch 1.113 compilation problems on cygwin
Hi, Recently, there have been some fundamental achievements regarding acl-support on the cygwin platform. I thought that it would be convenient to offer an acl-patch enabled rsync as a part of the cwrsync package (a yet another minimalist rsync on cygwin solution). I get some compilation errors. What I did: - Downloaded acl patch v1.113 from rsync site - Run commands below In the rsync source
2008 Jun 25
2
DO NOT REPLY [Bug 5565] New: xattrs not set on locked files that already exist on target
...nt dry_run; extern int preserve_acls; extern int preserve_xattrs; +extern int force_change; extern int preserve_perms; extern int preserve_fileflags; extern int preserve_executability; @@ -445,6 +446,11 @@ if (daemon_chmod_modes && !S_ISLNK(new_mode)) new_mode = tweak_mode(new_mode, daemon_chmod_modes); +#ifdef SUPPORT_FORCE_CHANGE + if (force_change) + make_mutable(fname, sxp->st.st_mode, sxp->st.st_flags, force_change); +#endif + #ifdef SUPPORT_ACLS if (preserve_acls && !S_ISLNK(file->mode) && !ACL_READY(*sxp)...
2008 Feb 15
4
Revised flags patch
...struct *recv_file_ent { static int64 modtime; static mode_t mode; +#ifdef SUPPORT_FLAGS + static uint32 fileflags; +#endif #ifdef SUPPORT_HARD_LINKS static int64 dev; #endif @@ -745,6 +762,11 @@ static struct file_struct *recv_file_ent if (chmod_modes && !S_ISLNK(mode)) mode = tweak_mode(mode, chmod_modes); +#ifdef SUPPORT_FLAGS + if (fileflags_ndx && !(xflags & XMIT_SAME_FLAGS)) + fileflags = (uint32)read_int(f); +#endif + if (uid_ndx && !(xflags & XMIT_SAME_UID)) { if (protocol_version < 30) uid = (uid_t)read_int(f); @@ -865,6 +887,10 @@ st...