-/* $OpenBSD: main.c,v 1.104 2021/02/22 09:46:05 claudio Exp $ */
+/* $OpenBSD: main.c,v 1.105 2021/02/23 14:25:29 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
if (fchdir(cachefd) == -1)
err(1, "fchdir");
- if (pledge("stdio rpath cpath proc exec unveil", NULL)
- == -1)
+ if (pledge("stdio rpath proc exec unveil", NULL) == -1)
err(1, "pledge");
proc_rsync(rsync_prog, bind_addr, fd[0]);
-/* $OpenBSD: rsync.c,v 1.18 2021/02/19 08:14:49 claudio Exp $ */
+/* $OpenBSD: rsync.c,v 1.19 2021/02/23 14:25:29 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
} else if (unveil(prog, "x") == -1)
err(1, "%s: unveil", prog);
- /* Unveil the repository directory and terminate unveiling. */
-
- if (unveil(".", "c") == -1)
- err(1, "unveil");
- if (unveil(NULL, NULL) == -1)
- err(1, "unveil");
-
if (pledge("stdio proc exec", NULL) == -1)
err(1, "pledge");