> rebound wants getpw, as of kern_pledge.c 1.123

You must be running snapshots, which tricky bit in libc which tests
for "getpw" on non-YP systems.

This diff will work, or the getpwnam use in rebound.c should be hoisted
up higher, similar to the most recent change in ntpd/constraint.c

> Index: usr.sbin/rebound/rebound.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/rebound/rebound.c,v
> retrieving revision 1.45
> diff -u -p -u -r1.45 rebound.c
> --- usr.sbin/rebound/rebound.c        24 Nov 2015 00:21:55 -0000      1.45
> +++ usr.sbin/rebound/rebound.c        27 Nov 2015 20:15:28 -0000
> @@ -616,7 +616,7 @@ main(int argc, char **argv)
>       struct timespec ts, *timeout = NULL;
>       const char *conffile = "/etc/rebound.conf";
>  
> -     if (pledge("stdio rpath inet proc id", NULL) == -1)
> +     if (pledge("stdio rpath getpw inet proc id", NULL) == -1)
>               logerr("pledge failed");
>  
>       while ((ch = getopt(argc, argv, "c:d")) != -1) {
> 
> 
> -- 
> Carlin
> 


Reply via email to