search for: preserve_gid

Displaying 20 results from an estimated 26 matches for "preserve_gid".

2003 Mar 20
2
--link-dest uid/gid checking bug?
...ough files existed in the compare-dest/link-dest location; compare-dest would detect them but link-dest would make new files anyway. I tracked down my confusion to the new portion of skip_file() in generator.c. Because I wasn't supplying the --owner or --group options, the preserve_uid and preserve_gid flags were not set, and the source file's file->uid and file->gid values were just 0. But skip_file() was checking them against the destination file's st->st_uid and st->st_gid, and reporting the difference. Here's my stab at a patch -- I only just looked at the rsync co...
2011 Jan 11
1
--detect-renamed for mac users : proposition of a modification
...33 diff --git a/compat.c b/compat.c --- a/compat.c +++ b/compat.c @@ -42,9 +42,11 @@ extern int checksum_seed; extern int basis_dir_cnt; extern int prune_empty_dirs; extern int protocol_version; +extern int force_change; extern int protect_args; extern int preserve_uid; extern int preserve_gid; b) detect-renamed.diff overlaps the previous hunk of fileflags.diff : line 36 : diff --git a/compat.c b/compat.c --- a/compat.c +++ b/compat.c @@ -42,6 +42,7 @@ extern int checksum_seed; extern int basis_dir_cnt; extern int prune_empty_dirs; extern int protocol_version; +extern int det...
2002 Mar 12
2
Patch: --drop-suid Remove suid/sgid from target files
...S_ISGID); + } #if SUPPORT_LINKS if (S_ISLNK(st.st_mode)) { diff -r --unified rsync-2.5.4pre1-orig/options.c rsync-2.5.4pre1/options.c --- rsync-2.5.4pre1-orig/options.c Thu Feb 28 09:49:57 2002 +++ rsync-2.5.4pre1/options.c Tue Mar 12 22:01:45 2002 @@ -31,6 +31,7 @@ int preserve_uid = 0; int preserve_gid = 0; int preserve_times = 0; +int drop_suid = 0; int update_only = 0; int cvs_exclude = 0; int dry_run=0; @@ -199,6 +200,7 @@ rprintf(F," -g, --group preserve group\n"); rprintf(F," -D, --devices preserve devices (root only)\n"); rprint...
2006 Jun 02
3
[PATCH] --omit-dir-changes, qsort<>mergesort issues
...Index: generator.c =================================================================== RCS file: /cvsroot/rsync/generator.c,v retrieving revision 1.282 diff -u -r1.282 generator.c --- generator.c 1 Jun 2006 08:04:40 -0000 1.282 +++ generator.c 2 Jun 2006 13:00:01 -0000 @@ -45,6 +45,7 @@ extern int preserve_gid; extern int preserve_times; extern int omit_dir_times; +extern int omit_dir_changes; extern int delete_mode; extern int delete_before; extern int delete_during; @@ -348,10 +349,11 @@ iflags |= ITEM_REPORT_TIME; if ((file->mode & CHMOD_BITS) != (st->st_mode & CHMOD_BITS))...
2003 Apr 08
1
link_dest checks perms despite no -p -o or -g
...!= file->gid) { return 0; } } I think the code should be this instead. if (link_dest) { if(preserve_perms && ((st->st_mode & ~_S_IFMT) != (file->mode & ~_S_IFMT))) { return 0; } if ((preserve_uid && (st->st_uid != file->uid)) || (preserve_gid && (st->st_gid != file->gid))) { return 0; } } Tested lightly here, seems to do the right thing. Without this change you pretty much have to be root to use --link-dest. Otherwise if you can't sync owner/group/perms for some reason (not file owner, chgrp fails on remote ho...
2003 Nov 05
1
--link-dest
...ture.) Joe *** generator.c Thu Aug 29 09:44:55 2002 --- ../generator.c Tue Nov 4 09:12:59 2003 *************** *** 42,47 **** --- 42,50 ---- extern int modify_window; extern char *compare_dest; extern int link_dest; + extern int preserve_perms; + extern int preserve_uid; + extern int preserve_gid; /* choose whether to skip a particular file */ *************** *** 51,63 **** if (st->st_size != file->length) { return 0; } ! if (link_dest) { ! if((st->st_mode & ~_S_IFMT) != (file->mode & ~_S_IFMT)) { !...
2004 May 06
2
rsync-2.6.2: NFS clients confused after an rsync
We use rsync to update an nfs server. After an update, we noticed that a large number of clients didn't see the updated data. It took me a while to be able to reliably reproduce this problem, but it happens on old and new versions of rysnc. It also happens across all the platforms we use here (sun/linux/netapp). This shows the problem: [Note my home directory is NFS mounted]
2004 Apr 20
1
improved atime patch
...ons.c =================================================================== RCS file: /cvsroot/rsync/options.c,v retrieving revision 1.147 diff -u -w -r1.147 options.c --- options.c 17 Apr 2004 17:07:23 -0000 1.147 +++ options.c 20 Apr 2004 21:06:18 -0000 @@ -46,6 +46,7 @@ int preserve_uid = 0; int preserve_gid = 0; int preserve_times = 0; +int copy_atimes = 0; int update_only = 0; int cvs_exclude = 0; int dry_run = 0; @@ -241,6 +242,7 @@ rprintf(F," -g, --group preserve group\n"); rprintf(F," -D, --devices preserve devices (root only)\n"); rp...
2004 Jun 21
0
Problem found and fixed with --update
...e. > > Prior to the change I made, ``rsync'' never took this eventuality into > account. > And now his patch. We hope it's helpful: *** rsync.c.orig Tue Mar 23 10:16:15 2004 --- rsync.c Fri Jun 18 19:51:37 2004 *************** *** 33,38 **** --- 33,39 ---- extern int preserve_gid; extern int preserve_perms; extern int make_backups; + extern int update_only; /* *************** *** 235,241 **** --- 236,261 ---- if (make_backups && !make_backup(fname)) return; + /* if the target has been modified since the file list was generated, + just del...
2013 Oct 24
0
patch for combining detect-renamed and fileflags patches (fwd)
...is; + extern int read_batch; + extern int delay_updates; ++extern int detect_renamed; + extern int checksum_seed; extern int basis_dir_cnt; extern int prune_empty_dirs; - extern int protocol_version; -+extern int detect_renamed; - extern int protect_args; - extern int preserve_uid; - extern int preserve_gid; -@@ -123,6 +124,7 @@ void set_allow_inc_recurse(void) +@@ -125,6 +126,7 @@ allow_inc_recurse = 0; else if (!am_sender && (delete_before || delete_after @@ -61,15 +61,15 @@ diff --git a/delete.c b/delete.c --- a/delete.c +++ b/delete.c -@@ -25,6 +25,7 @@ +@@ -23,6 +23,7 @@ + #...
2004 Sep 15
0
[Bug 1764] New: dry-run does not show changes in owner / group, permission, or timestamp
...return 0; + } /* don't complain about not setting times on directories * because some filesystems can't do it */ if (set_modtime(fname,file->modtime) != 0 && @@ -157,6 +160,10 @@ change_gid = preserve_gid && file->gid != GID_NONE && st->st_gid != file->gid; if (change_uid || change_gid) { + if (dry_run) { + rprintf(FINFO,"chown: %s\n",fname); + return 0; + } if (...
2001 Sep 01
3
Patch to make rsync preserve access times
...rintf(FERROR,"failed to set times on %s : %s\n", > - fname,strerror(errno)); > - return 0; > - } else { > - updated = 1; > - } > - } > - > change_uid = am_root && preserve_uid && st->st_uid != file->uid; > change_gid = preserve_gid && file->gid != (gid_t) -1 && \ > st->st_gid != file->gid; > --- 166,171 ---- > *************** > *** 215,220 **** > --- 205,233 ---- > } > #endif > > + /* If we don't have a symbolic link, then we have to see if we need &gt...
2006 Jan 24
1
propagate atimes with rsync-2.6.6 (fwd)
...p; file->link_u.links) { hard_link_cluster(file, ndx, diff -uNr rsync-2.6.6/options.c rsync-2.6.6_patch/options.c --- rsync-2.6.6/options.c 2005-05-19 10:52:17.000000000 +0200 +++ rsync-2.6.6_patch/options.c 2006-01-11 15:56:00.000000000 +0100 @@ -48,6 +48,7 @@ int preserve_uid = 0; int preserve_gid = 0; int preserve_times = 0; +int preserve_atime = 0; int omit_dir_times = 0; int update_only = 0; int cvs_exclude = 0; @@ -286,6 +287,7 @@ rprintf(F," -g, --group preserve group\n"); rprintf(F," -D, --devices preserve devices (root only)\n&quo...
2004 Mar 05
2
Problem with --link-dest when syncing AIX to Linux
...ec total size is 14 speedup is 0.05 =====> Oooops. Why were file1 and file2 transferred? I did some debugging and found out that the problem seems to be in the function skip_file() in generator.c: if (link_dest) { extern int preserve_perms; extern int preserve_uid; extern int preserve_gid; if(preserve_perms && (st->st_mode & ~_S_IFMT) != (file->mode & ~_S_IFMT)) return 0; This is always true when rsyncing AIX -> linux, look at this gdb output: (gdb) print /o st->st_mode $13 = 0100644 (gdb) print /o file->mode $14 = 0500644 N...
2004 Feb 20
1
[patch] fix for "refuse options" ignored due to popt
...BATCH, OPT_WRITE_BATCH}; + OPT_READ_BATCH, OPT_WRITE_BATCH, OPT_CHECKSUM, OPT_COMPRESS}; static struct poptOption long_options[] = { /* longName, shortName, argInfo, argPtr, value, descrip, argDesc */ @@ -336,7 +336,7 @@ {"group", 'g', POPT_ARG_NONE, &preserve_gid, 0, 0, 0 }, {"devices", 'D', POPT_ARG_NONE, &preserve_devices, 0, 0, 0 }, {"times", 't', POPT_ARG_NONE, &preserve_times, 0, 0, 0 }, - {"checksum", 'c', POPT_ARG_NONE, &always_checksum, 0, 0, 0 },...
2002 Mar 08
1
[PATCH][RFC] space saving incrementals
...rms", 'p', POPT_ARG_NONE, &preserve_perms}, + {"compare-perms", 0, POPT_ARG_NONE, &compare_perms}, {"owner", 'o', POPT_ARG_NONE, &preserve_uid}, {"group", 'g', POPT_ARG_NONE, &preserve_gid}, {"devices", 'D', POPT_ARG_NONE, &preserve_devices}, @@ -320,6 +327,7 @@ {"timeout", 0, POPT_ARG_INT, &io_timeout}, {"temp-dir", 'T', POPT_ARG_STRING, &tmpdir}, {"compare-dest", 0, PO...
2002 Sep 10
0
[PATCH] Add --preserve-atime switch to rsync
...create_directory_path(char *fname); int copy_file(char *source, char *dest, mode_t mode); int robust_unlink(char *fname); *** options.c@@/main/original/1 Tue Apr 9 14:03:18 2002 --- options.c Tue Apr 9 15:59:10 2002 *************** *** 44,49 **** --- 44,50 ---- int preserve_uid = 0; int preserve_gid = 0; int preserve_times = 0; + int preserve_atime = 0; int update_only = 0; int cvs_exclude = 0; int dry_run=0; *************** *** 220,225 **** --- 221,227 ---- rprintf(F," -g, --group preserve group\n"); rprintf(F," -D, --devices preser...
2008 Feb 15
4
Revised flags patch
...mebak); diff -brpu rsync-3.0.0pre9/compat.c rsync-3.0.0pre9-flags/compat.c --- rsync-3.0.0pre9/compat.c Sat Jan 26 20:58:17 2008 +++ rsync-3.0.0pre9-flags/compat.c Fri Feb 15 19:33:09 2008 @@ -44,6 +44,7 @@ extern int protocol_version; extern int protect_args; extern int preserve_uid; extern int preserve_gid; +extern int preserve_fileflags; extern int preserve_acls; extern int preserve_xattrs; extern int need_messages_from_generator; @@ -60,7 +61,7 @@ extern iconv_t ic_send, ic_recv; #endif /* These index values are for the file-list's extra-attribute array. */ -int uid_ndx, gid_ndx, acls_nd...
2004 Apr 27
1
[PATCH] Inplace option for rsync
...en symlinks are encountered, recreate the symlink on the destination\&. diff -Naur rsync-2.6.1pre2/rsync.c rsync-inplace/rsync.c --- rsync-2.6.1pre2/rsync.c 2004-03-24 03:16:15.000000000 +1100 +++ rsync-inplace/rsync.c 2004-04-22 09:16:49.000000000 +1000 @@ -33,6 +33,7 @@ extern int preserve_gid; extern int preserve_perms; extern int make_backups; +extern int inplace; /* @@ -235,6 +236,11 @@ if (make_backups && !make_backup(fname)) return; + if (inplace) { + set_perms(fname,file,NULL,0); + return; + } +...
2003 Sep 05
1
new option suggestion '--backup-only'
...e; + recv_generator(local_name?local_name:f_name(file),flist,i,-1); + } } if (verbose > 2) diff -ur rsync/rsync.c rsync-backuponly/rsync.c --- rsync/rsync.c 2003-02-19 03:07:36.000000000 +0900 +++ rsync-backuponly/rsync.c 2003-09-02 16:12:51.000000000 +0900 @@ -30,6 +30,7 @@ extern int preserve_gid; extern int preserve_perms; extern int make_backups; +extern int backup_only; /* @@ -237,6 +238,9 @@ if (make_backups && !make_backup(fname)) return; + if (backup_only) + return; + /* move tmp file over real file */ if (robust_rename(fnametmp,fname) != 0) { if (errno =...