]> granicus.if.org Git - sudo/commitdiff
increased MAXCOMMANDLENGTH to 8k
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Sep 1995 02:56:08 +0000 (02:56 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 1 Sep 1995 02:56:08 +0000 (02:56 +0000)
HAVE_GETCWD -> HAVE_GETWD

sudo.h

diff --git a/sudo.h b/sudo.h
index f98eda1ea33e8d81c4a4b6c9836e3d0a892dae82..578e680ad0b99c1e97429a6fbf12c5bdf3850c5c 100644 (file)
--- a/sudo.h
+++ b/sudo.h
 #include "compat.h"
 #include "pathnames.h"
 
-/* Max length for a command */
-#define MAXCOMMANDLENGTH       MAXPATHLEN
+/*
+ * Max length for a command + args in the sudoers file.
+ * This is fairly arbitrary but 8K should be enough.
+ */
+#define MAXCOMMANDLENGTH       8192
 
 /*
  * IP address and netmask pairs for checking against local interfaces.
@@ -144,8 +147,8 @@ extern int top;
 #ifndef HAVE_STRDUP
 char *strdup           __P((const char *));
 #endif
-#ifndef HAVE_GETCWD
-char *getcwd           __P((char *, size_t));
+#ifndef HAVE_GETWD
+char *getwd            __P((char *));
 #endif
 #if !defined(HAVE_PUTENV) && !defined(HAVE_SETENV)
 int putenv             __P((const char *));