=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/nohup/nohup.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- src/usr.bin/nohup/nohup.c 2009/10/27 23:59:41 1.14 +++ src/usr.bin/nohup/nohup.c 2015/01/16 06:40:10 1.15 @@ -1,4 +1,4 @@ -/* $OpenBSD: nohup.c,v 1.14 2009/10/27 23:59:41 deraadt Exp $ */ +/* $OpenBSD: nohup.c,v 1.15 2015/01/16 06:40:10 deraadt Exp $ */ /* $NetBSD: nohup.c,v 1.6 1995/08/31 23:35:25 jtc Exp $ */ /* @@ -30,7 +30,6 @@ * SUCH DAMAGE. */ -#include #include #include #include @@ -40,6 +39,7 @@ #include #include #include +#include #include static void dofile(void); @@ -100,7 +100,7 @@ { int fd; const char *p; - char path[MAXPATHLEN]; + char path[PATH_MAX]; p = FILENAME; if ((fd = open(p, O_RDWR|O_CREAT|O_APPEND, S_IRUSR|S_IWUSR)) >= 0)