summaryrefslogtreecommitdiffstats
path: root/Modules/config.c.in
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/config.c.in')
-rw-r--r--Modules/config.c.in17
1 files changed, 17 insertions, 0 deletions
diff --git a/Modules/config.c.in b/Modules/config.c.in
index d4e09b5..7843f14 100644
--- a/Modules/config.c.in
+++ b/Modules/config.c.in
@@ -53,10 +53,18 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
static char *argv0;
+/* These are made available for other modules that might need them.
+ This is rare, but it is needed by the secureware module. */
+
+static char **orig_argv;
+static int orig_argc;
+
main(argc, argv)
int argc;
char **argv;
{
+ orig_argc = argc;
+ orig_argv = argv;
argv0 = argv[0];
realmain(argc, argv);
}
@@ -67,6 +75,15 @@ getprogramname()
return argv0;
}
+void
+getargcargv(argc,argv)
+ int *argc;
+ char ***argv;
+{
+ *argc = orig_argc;
+ *argv = orig_argv;
+}
+
#endif