=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/receiver.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- src/usr.bin/rsync/receiver.c 2019/02/16 05:30:28 1.11 +++ src/usr.bin/rsync/receiver.c 2019/02/16 10:44:01 1.12 @@ -1,4 +1,4 @@ -/* $Id: receiver.c,v 1.11 2019/02/16 05:30:28 deraadt Exp $ */ +/* $Id: receiver.c,v 1.12 2019/02/16 10:44:01 florian Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons @@ -92,8 +92,8 @@ } /* - * Pledges: unveil, rpath, cpath, wpath, stdio, fattr. - * Pledges (dry-run): -cpath, -wpath, -fattr. + * Pledges: unveil, rpath, cpath, wpath, stdio, fattr, chown. + * Pledges (dry-run): -cpath, -wpath, -fattr, -chown. */ int rsync_receiver(struct sess *sess, int fdin, int fdout, const char *root) @@ -108,7 +108,7 @@ struct upload *ul = NULL; 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"); goto out; }