summaryrefslogtreecommitdiff
path: root/usr.bin/rsync/socket.c
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2019-02-12 19:20:16 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2019-02-12 19:20:16 +0000
commita0e37f550409ec1bf433d4d5b40b87ac71cebe93 (patch)
tree9c0b58b332ffbd9125550c5fb1e5c5d3ce5f846d /usr.bin/rsync/socket.c
parent5b50336102dac53b9ff996f226ff9fb1c7fe0965 (diff)
sync
commit a2f872b75044aa7bf2297704500b134e3f1b68f7 Author: kristaps <> Date: Tue Feb 12 08:11:09 2019 +0000 Some forgotten pledges for getpw.
Diffstat (limited to 'usr.bin/rsync/socket.c')
-rw-r--r--usr.bin/rsync/socket.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rsync/socket.c b/usr.bin/rsync/socket.c
index ff8496c3a70..dbd1cd65167 100644
--- a/usr.bin/rsync/socket.c
+++ b/usr.bin/rsync/socket.c
@@ -1,4 +1,4 @@
-/* $Id: socket.c,v 1.5 2019/02/11 21:41:22 deraadt Exp $ */
+/* $Id: socket.c,v 1.6 2019/02/12 19:20:15 benno Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -267,7 +267,7 @@ rsync_socket(const struct opts *opts, const struct fargs *f)
/* Drop the DNS pledge. */
- if (pledge("stdio rpath wpath cpath fattr inet unveil", NULL) == -1) {
+ if (pledge("stdio rpath wpath cpath fattr getpw inet unveil", NULL) == -1) {
ERR(&sess, "pledge");
goto out;
}
@@ -288,7 +288,7 @@ rsync_socket(const struct opts *opts, const struct fargs *f)
}
/* Drop the inet pledge. */
- if (pledge("stdio rpath wpath cpath fattr unveil", NULL) == -1) {
+ if (pledge("stdio rpath wpath cpath fattr getpw unveil", NULL) == -1) {
ERR(&sess, "pledge");
goto out;
}