Hi,

I have the following configuration line in /etc/inetd.conf

/tftpboot/tftpdhook     stream  unix    nowait  _tftpdhook      
/usr/local/sbin/tftpdhook

Apparently because of this inetd crashes at startup
(in a very recent snapshot):

inetd(1843): syscall 10 "cpath"

The following patch is probably not optimal, but fixes it.

Juha

Index: usr.sbin/inetd/inetd.c
===================================================================
RCS file: /home/cvs/OpenBSD/src/usr.sbin/inetd/inetd.c,v
retrieving revision 1.147
diff -u -p -r1.147 inetd.c
--- usr.sbin/inetd/inetd.c      22 Oct 2015 12:34:25 -0000      1.147
+++ usr.sbin/inetd/inetd.c      31 Oct 2015 20:32:52 -0000
@@ -346,7 +346,8 @@ main(int argc, char *argv[])
                        (void) setlogin("");
        }
 
-       if (pledge("stdio rpath getpw dns inet proc exec id", NULL) == -1)
+       if (pledge("stdio cpath rpath getpw dns inet proc exec id", NULL)
+           == -1)
                err(1, "pledge");
 
        if (uid == 0) {

Reply via email to