diff options
author | djm <djm@openbsd.org> | 2008-09-19 05:41:29 +0000 |
---|---|---|
committer | djm <djm@openbsd.org> | 2008-09-19 05:41:29 +0000 |
commit | 5cf319380f40412ab3ab1bf97f98be0e06439c51 (patch) | |
tree | 110c6886462c4ec82cb1d6cd9aa23197430106cb /sys/sys/exec_script.h | |
parent | While vaguely interesting, the prints coming out of the driver was way too (diff) | |
download | wireguard-openbsd-5cf319380f40412ab3ab1bf97f98be0e06439c51.tar.xz wireguard-openbsd-5cf319380f40412ab3ab1bf97f98be0e06439c51.zip |
increase MAXINTERP from 64 to 128 and allow a little extra room on top
of that for shell scripts to cover the #!, an optional space following
it and a newline at the end. feedback and ok miod@
Diffstat (limited to 'sys/sys/exec_script.h')
-rw-r--r-- | sys/sys/exec_script.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/exec_script.h b/sys/sys/exec_script.h index ca85acf5b0f..ad3cf43b242 100644 --- a/sys/sys/exec_script.h +++ b/sys/sys/exec_script.h @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_script.h,v 1.4 2002/03/14 01:27:14 millert Exp $ */ +/* $OpenBSD: exec_script.h,v 1.5 2008/09/19 05:41:29 djm Exp $ */ /* $NetBSD: exec_script.h,v 1.6 1995/03/26 20:24:11 jtc Exp $ */ /* @@ -33,6 +33,7 @@ #define EXEC_SCRIPT_MAGIC "#!" #define EXEC_SCRIPT_MAGICLEN 2 +#define EXEC_SCRIPT_HDRSZ (EXEC_SCRIPT_MAGICLEN + 1 + MAXINTERP + 1) #define SETUIDSCRIPTS /* they are secure, so enable them */ |