diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-06-19 16:36:37 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-06-19 16:36:37 +0000 |
commit | 13ec510b94d9b3ed9d73c48589ade54e308bb6ec (patch) | |
tree | 60ecf9567504951b8a73212a9f7fb24289d0072a /usr.sbin | |
parent | 5e0e2d7cba625198fa72133d69d8b9cc5449892b (diff) |
Close proc fd used to talk to proc_parser when spaning the rsync process
else the fd leaks into the rsync process.
OK deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/rpki-client/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c index a28a3ba0f8c..45ded810a92 100644 --- a/usr.sbin/rpki-client/main.c +++ b/usr.sbin/rpki-client/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.8 2019/06/19 16:30:37 deraadt Exp $ */ +/* $OpenBSD: main.c,v 1.9 2019/06/19 16:36:36 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -1340,6 +1340,7 @@ main(int argc, char *argv[]) err(EXIT_FAILURE, "fork"); if (rsyncpid == 0) { + close(proc); close(fd[1]); if (pledge("stdio proc exec rpath cpath unveil", NULL) == -1) err(EXIT_FAILURE, "pledge"); |