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

Diff for /src/usr.bin/rsync/flist.c between version 1.30 and 1.31

version 1.30, 2021/03/22 11:26:44 version 1.31, 2021/03/22 11:49:15
Line 834 
Line 834 
                         ERRX1("flist_append");                          ERRX1("flist_append");
                         return 0;                          return 0;
                 }                  }
                 if (unveil(root, "r") == -1) {  
                         ERR("%s: unveil", root);  
                         return 0;  
                 }  
                 return 1;                  return 1;
         } else if (S_ISLNK(st.st_mode)) {          } else if (S_ISLNK(st.st_mode)) {
                 if (!sess->opts->preserve_links) {                  if (!sess->opts->preserve_links) {
Line 854 
Line 850 
                         ERRX1("flist_append");                          ERRX1("flist_append");
                         return 0;                          return 0;
                 }                  }
                 if (unveil(root, "r") == -1) {  
                         ERR("%s: unveil", root);  
                         return 0;  
                 }  
                 return 1;                  return 1;
         } else if (!S_ISDIR(st.st_mode)) {          } else if (!S_ISDIR(st.st_mode)) {
                 WARNX("%s: skipping special", root);                  WARNX("%s: skipping special", root);
Line 994 
Line 986 
                 ERR("fts_read");                  ERR("fts_read");
                 goto out;                  goto out;
         }          }
         if (unveil(root, "r") == -1) {  
                 ERR("%s: unveil", root);  
                 goto out;  
         }  
   
         LOG3("generated %zu filenames: %s", flsz, root);          LOG3("generated %zu filenames: %s", flsz, root);
         rc = 1;          rc = 1;
Line 1091 
Line 1079 
   
                 /* Add this file to our file-system worldview. */                  /* Add this file to our file-system worldview. */
   
                 if (unveil(argv[i], "r") == -1) {  
                         ERR("%s: unveil", argv[i]);  
                         goto out;  
                 }  
                 if (!flist_append(f, &st, argv[i])) {                  if (!flist_append(f, &st, argv[i])) {
                         ERRX1("flist_append");                          ERRX1("flist_append");
                         goto out;                          goto out;
Line 1133 
Line 1117 
   
         /* After scanning, lock our file-system view. */          /* After scanning, lock our file-system view. */
   
         if (unveil(NULL, NULL) == -1) {  
                 ERR("unveil");  
                 return 0;  
         }  
         if (!rc)          if (!rc)
                 return 0;                  return 0;
   

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