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

Diff for /src/usr.bin/rsync/server.c between version 1.7 and 1.8

version 1.7, 2019/02/18 21:55:27 version 1.8, 2019/03/06 18:37:22
Line 22 
Line 22 
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   #include <err.h>
   
 #include "extern.h"  #include "extern.h"
   
Line 56 
Line 57 
         struct sess      sess;          struct sess      sess;
         int              fdin = STDIN_FILENO,          int              fdin = STDIN_FILENO,
                          fdout = STDOUT_FILENO, rc = 0;                           fdout = STDOUT_FILENO, rc = 0;
   
           if (pledge("stdio unix rpath wpath cpath dpath fattr chown getpw unveil",
               NULL) == -1)
                   err(1, "pledge");
   
         memset(&sess, 0, sizeof(struct sess));          memset(&sess, 0, sizeof(struct sess));
         sess.opts = opts;          sess.opts = opts;

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8