aboutsummaryrefslogtreecommitdiff
path: root/debianutils
diff options
context:
space:
mode:
authorGravatar Ian Wienand <ianw@vmware.com>2011-09-14 08:41:38 +0200
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2011-09-14 08:41:38 +0200
commit378ab6819907fa9e439e93ed081c73c2351b4330 (patch)
tree2dff596f174929de10472a36a452462118613980 /debianutils
parenta221bc5f9909a6914ec6f4d14f76bb28c4a4cddf (diff)
downloadbusybox-378ab6819907fa9e439e93ed081c73c2351b4330.tar.gz
busybox-378ab6819907fa9e439e93ed081c73c2351b4330.tar.bz2
login: new option LOGIN_SESSION_AS_CHILD
Signed-off-by: Ian Wienand <ianw@vmware.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'debianutils')
-rw-r--r--debianutils/run_parts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/debianutils/run_parts.c b/debianutils/run_parts.c
index 65cbfc338..8f08f6dc6 100644
--- a/debianutils/run_parts.c
+++ b/debianutils/run_parts.c
@@ -66,6 +66,7 @@ struct globals {
#define names (G.names)
#define cur (G.cur )
#define cmd (G.cmd )
+#define INIT_G() do { } while (0)
enum { NUM_CMD = (COMMON_BUFSIZE - sizeof(G)) / sizeof(cmd[0]) - 1 };
@@ -143,6 +144,8 @@ int run_parts_main(int argc UNUSED_PARAM, char **argv)
unsigned n;
int ret;
+ INIT_G();
+
#if ENABLE_FEATURE_RUN_PARTS_LONG_OPTIONS
applet_long_options = runparts_longopts;
#endif