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

Diff for /src/usr.bin/rsync/socket.c between version 1.29 and 1.30

version 1.29, 2021/03/31 19:45:16 version 1.30, 2021/05/17 12:02:58
Line 281 
Line 281 
   
         if (pledge("stdio unix rpath wpath cpath dpath inet fattr chown dns getpw unveil",          if (pledge("stdio unix rpath wpath cpath dpath inet fattr chown dns getpw unveil",
             NULL) == -1)              NULL) == -1)
                 err(1, "pledge");                  err(ERR_IPC, "pledge");
   
         memset(&sess, 0, sizeof(struct sess));          memset(&sess, 0, sizeof(struct sess));
         sess.opts = opts;          sess.opts = opts;
Line 365 
Line 365 
   
         if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil",          if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil",
             NULL) == -1)              NULL) == -1)
                 err(1, "pledge");                  err(ERR_IPC, "pledge");
   
         memset(&sess, 0, sizeof(struct sess));          memset(&sess, 0, sizeof(struct sess));
         sess.lver = RSYNC_PROTOCOL;          sess.lver = RSYNC_PROTOCOL;
Line 374 
Line 374 
         assert(f->host != NULL);          assert(f->host != NULL);
         assert(f->module != NULL);          assert(f->module != NULL);
   
         if ((args = fargs_cmdline(&sess, f, &skip)) == NULL) {          args = fargs_cmdline(&sess, f, &skip);
                 ERRX1("fargs_cmdline");  
                 exit(1);  
         }  
   
         /* Initiate with the rsyncd version and module request. */          /* Initiate with the rsyncd version and module request. */
   

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30