-a now implies -o and -D whether you are root or not
authorAndrew Tridgell <tridge@samba.org>
Mon, 24 Jan 2000 05:52:44 +0000 (05:52 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 24 Jan 2000 05:52:44 +0000 (05:52 +0000)
options.c
rsync.yo

index 642a9f2808cdf8de729ba23e8f5a5a9dd66bcd84..00cfc0bea6498ec167e81fcb3464d1127bd82dc3 100644 (file)
--- a/options.c
+++ b/options.c
@@ -108,7 +108,7 @@ void usage(int F)
   rprintf(F," -r, --recursive             recurse into directories\n");
   rprintf(F," -R, --relative              use relative path names\n");
   rprintf(F," -b, --backup                make backups (default %s suffix)\n",BACKUP_SUFFIX);
-  rprintf(F,"     --backup-dir            make backups into this directory");
+  rprintf(F,"     --backup-dir            make backups into this directory\n");
   rprintf(F,"     --suffix=SUFFIX         override backup suffix\n");  
   rprintf(F," -u, --update                update only (don't overwrite newer files)\n");
   rprintf(F," -l, --links                 preserve soft links\n");
@@ -460,10 +460,8 @@ int parse_arguments(int argc, char *argv[], int frommain)
                        preserve_perms=1;
                        preserve_times=1;
                        preserve_gid=1;
-                       if (am_root) {
-                               preserve_devices=1;
-                               preserve_uid=1;
-                       }
+                       preserve_uid=1;
+                       preserve_devices=1;
                        break;
 
                case OPT_SERVER:
index 90406aec1b36254cdbcbbf52b72d38bba25f6668..0f9d4034d9464bf8eab60a2de39d3839d7817686 100644 (file)
--- a/rsync.yo
+++ b/rsync.yo
@@ -319,12 +319,9 @@ explicitly checked on the receiver and any files of the same name
 which already exist and have the same checksum and size on the
 receiver are skipped.  This option can be quite slow.
 
-dit(bf(-a, --archive)) This is equivalent to -rlptg. It is a quick way
+dit(bf(-a, --archive)) This is equivalent to -rlptgoD. It is a quick way
 of saying you want recursion and want to preserve everything.
 
-Note: if the user launching rsync is root then the -o (preserve
-uid) and -D (preserve devices) options are also implied.
-
 dit(bf(-r, --recursive)) This tells rsync to copy directories
 recursively. If you don't specify this then rsync won't copy
 directories at all.