diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2015-10-16 13:37:45 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2015-10-16 13:37:45 +0000 |
commit | 7d5bc0b4eff009809546d4ef502ce93f83d2300c (patch) | |
tree | 915823249236a820f51cb63ee5be2eba08a7c658 /usr.bin/rcs | |
parent | 0f5a35a5bb1e5927d12e3adf52222f42e7c37280 (diff) |
Implement real "flock" request and add it to userland programs that
use pledge and file locking. OK deraadt@
Diffstat (limited to 'usr.bin/rcs')
-rw-r--r-- | usr.bin/rcs/rcsprog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/rcs/rcsprog.c b/usr.bin/rcs/rcsprog.c index 383cf2736cc..13bf3149ff1 100644 --- a/usr.bin/rcs/rcsprog.c +++ b/usr.bin/rcs/rcsprog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rcsprog.c,v 1.158 2015/10/10 20:35:01 deraadt Exp $ */ +/* $OpenBSD: rcsprog.c,v 1.159 2015/10/16 13:37:44 millert Exp $ */ /* * Copyright (c) 2005 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -128,7 +128,7 @@ main(int argc, char **argv) char **cmd_argv; int ret, cmd_argc; - if (pledge("stdio rpath wpath cpath fattr getpw", NULL) == -1) + if (pledge("stdio rpath wpath cpath fattr flock getpw", NULL) == -1) err(1, "pledge"); ret = -1; |