summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorFlorian Obser <florian@cvs.openbsd.org>2019-02-14 18:32:01 +0000
committerFlorian Obser <florian@cvs.openbsd.org>2019-02-14 18:32:01 +0000
commitd386fa9cf7d7117c96e94b81da21cc077c1755c8 (patch)
treea2c4821f38b9506a811392ed5414ca46362d99c6 /usr.bin
parent07df8a9dba2ffcf4c09a656ffbd6d3dbec81d6c1 (diff)
sync with kristaps, commit 438c1948c76a1ecd94e53e09ba88ec7e93004540
Put back stray -o passed into child and add missing pledge.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/rsync/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rsync/main.c b/usr.bin/rsync/main.c
index 5bd8e896a57..7b35440a0ba 100644
--- a/usr.bin/rsync/main.c
+++ b/usr.bin/rsync/main.c
@@ -1,4 +1,4 @@
-/* $Id: main.c,v 1.15 2019/02/14 18:31:01 florian Exp $ */
+/* $Id: main.c,v 1.16 2019/02/14 18:32:00 florian Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -365,7 +365,7 @@ main(int argc, char *argv[])
*/
if (opts.server) {
- if (pledge("stdio rpath wpath cpath fattr unveil", NULL) == -1)
+ if (pledge("stdio rpath wpath cpath fattr getpw unveil", NULL) == -1)
err(EXIT_FAILURE, "pledge");
c = rsync_server(&opts, (size_t)argc, argv);
return c ? EXIT_SUCCESS : EXIT_FAILURE;