Browse Source

Land #36, pass options to new processes

OPENBSD_6_1
Brent Cook 7 years ago
parent
commit
ee5f8f382f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      patches/0008-initialize-setproctitle-where-needed.patch

+ 2
- 1
patches/0008-initialize-setproctitle-where-needed.patch View File

@ -36,7 +36,7 @@ index 463600a..70e5ae7 100644
if (strcmp(__progname, "ntpctl") == 0) {
ctl_main(argc, argv);
/* NOTREACHED */
@@ -147,6 +156,16 @@ main(int argc, char *argv[])
@@ -147,6 +156,17 @@ main(int argc, char *argv[])
memset(&lconf, 0, sizeof(lconf));
@ -48,6 +48,7 @@ index 463600a..70e5ae7 100644
+ saved_argv[i] = NULL;
+ compat_init_setproctitle(argc, argv);
+ argv = saved_argv;
+ argv0 = argv;
+#endif
+
while ((ch = getopt(argc, argv, "df:nP:p:sSv")) != -1) {


Loading…
Cancel
Save