[BACK]Return to receiver.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / rsync

Diff for /src/usr.bin/rsync/receiver.c between version 1.11 and 1.12

version 1.11, 2019/02/16 05:30:28 version 1.12, 2019/02/16 10:44:01
Line 92 
Line 92 
 }  }
   
 /*  /*
  * Pledges: unveil, rpath, cpath, wpath, stdio, fattr.   * Pledges: unveil, rpath, cpath, wpath, stdio, fattr, chown.
  * Pledges (dry-run): -cpath, -wpath, -fattr.   * Pledges (dry-run): -cpath, -wpath, -fattr, -chown.
  */   */
 int  int
 rsync_receiver(struct sess *sess, int fdin, int fdout, const char *root)  rsync_receiver(struct sess *sess, int fdin, int fdout, const char *root)
Line 108 
Line 108 
         struct upload   *ul = NULL;          struct upload   *ul = NULL;
         mode_t           oumask;          mode_t           oumask;
   
         if (pledge("stdio rpath wpath cpath fattr getpw unveil", NULL) == -1) {          if (pledge("stdio rpath wpath cpath fattr chown getpw unveil", NULL) == -1) {
                 ERR(sess, "pledge");                  ERR(sess, "pledge");
                 goto out;                  goto out;
         }          }

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12