aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-01-29 13:16:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-01-29 13:16:03 +0000
commit7f67a28c2a2ee81b0998e57a10bccbdfe9078fd7 (patch)
tree874cccbecb0245e356b868ca3059bb813f51b6c7 /configure.in
parent30a46e1135f4d2cfc8d322a0ec3bf9557d93f124 (diff)
HAVE_WRITABLE_ARGV is set if argv[] is writable on the system, and then
we attempt to hide some of the more sensitive command line arguments
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 43a6678d8..9542f00d6 100644
--- a/configure.in
+++ b/configure.in
@@ -319,6 +319,22 @@ if test -n "$RANDOM_FILE" ; then
fi
dnl **********************************************************************
+dnl Check if the operating system allows programs to write to their own argv[]
+dnl **********************************************************************
+
+AC_MSG_CHECKING([if argv can be written to])
+AC_TRY_RUN([
+int main(int argc, char ** argv) {
+ argv[0][0] = ' ';
+ return (argv[0][0] == ' ')?0:1;
+}
+ ],
+ AC_DEFINE(HAVE_WRITABLE_ARGV, 1, [Define this symbol if your OS supports changing the contents of argv])
+ AC_MSG_RESULT(yes),
+ AC_MSG_RESULT(no)
+)
+
+dnl **********************************************************************
dnl Check for the presence of Kerberos4 libraries and headers
dnl **********************************************************************