summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2008-01-18 14:27:36 +0000
committerNicholas Clark <nick@ccl4.org>2008-01-18 14:27:36 +0000
commitec2019add1c7fdb16a67372a1ed14c16660c3cea (patch)
treed096bdaeb51d5d88c069fc6aec42b8789e8ff127 /perl.h
parent81c61bd5995819c1cff6a438f28f35ffeb9642eb (diff)
downloadperl-ec2019add1c7fdb16a67372a1ed14c16660c3cea.tar.gz
Eliminate all PERL_UNUSED_ARG()s in S_validate_suid() by changing its
prototype depending on the compile time options. In turn, this finds things that are unused in its callers. p4raw-id: //depot/perl@33000
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 0dadba4566..93e58b9fa6 100644
--- a/perl.h
+++ b/perl.h
@@ -41,6 +41,24 @@
# endif
#endif
+/* This logic needs to come after reading config.h, but before including
+ proto.h */
+#ifdef IAMSUID
+# ifndef DOSUID
+# define DOSUID
+# endif
+#endif
+
+#ifdef SETUID_SCRIPTS_ARE_SECURE_NOW
+# ifdef DOSUID
+# undef DOSUID
+# endif
+# ifdef IAMSUID
+# undef IAMSUID
+# define SETUID_SCRIPTS_ARE_SECURE_NOW_AND_IAMSUID
+# endif
+#endif
+
/* See L<perlguts/"The Perl API"> for detailed notes on
* PERL_IMPLICIT_CONTEXT and PERL_IMPLICIT_SYS */