=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/flist.c,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** src/usr.bin/rsync/flist.c 2021/03/22 11:26:44 1.30 --- src/usr.bin/rsync/flist.c 2021/03/22 11:49:15 1.31 *************** *** 1,4 **** ! /* $Id: flist.c,v 1.30 2021/03/22 11:26:44 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * Copyright (c) 2019 Florian Obser --- 1,4 ---- ! /* $Id: flist.c,v 1.31 2021/03/22 11:49:15 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * Copyright (c) 2019 Florian Obser *************** *** 834,843 **** ERRX1("flist_append"); return 0; } - if (unveil(root, "r") == -1) { - ERR("%s: unveil", root); - return 0; - } return 1; } else if (S_ISLNK(st.st_mode)) { if (!sess->opts->preserve_links) { --- 834,839 ---- *************** *** 854,863 **** ERRX1("flist_append"); return 0; } - if (unveil(root, "r") == -1) { - ERR("%s: unveil", root); - return 0; - } return 1; } else if (!S_ISDIR(st.st_mode)) { WARNX("%s: skipping special", root); --- 850,855 ---- *************** *** 994,1003 **** ERR("fts_read"); goto out; } - if (unveil(root, "r") == -1) { - ERR("%s: unveil", root); - goto out; - } LOG3("generated %zu filenames: %s", flsz, root); rc = 1; --- 986,991 ---- *************** *** 1091,1100 **** /* 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])) { ERRX1("flist_append"); goto out; --- 1079,1084 ---- *************** *** 1133,1142 **** /* After scanning, lock our file-system view. */ - if (unveil(NULL, NULL) == -1) { - ERR("unveil"); - return 0; - } if (!rc) return 0; --- 1117,1122 ----