summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorBrian Feldman <green@FreeBSD.org>2002-12-17 21:23:36 +0000
committerBrian Feldman <green@FreeBSD.org>2002-12-17 21:23:36 +0000
commitf45a1cab594145f16dad26f4b40f7e06f012fe00 (patch)
tree0c626b0b34dd0e2be604e76a004c4d398f7bd33f /sbin
parent54d85f9100dac6191eeb5749e3d4fc27ae0744bd (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/init/init.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 64ad43b57ec5..2ad5d958f226 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -737,8 +737,6 @@ runcom(void)
#ifdef LOGIN_CAP
setprocresources(RESOURCE_RC);
#endif
- execv(_PATH_RUNCOM, argv + 1);
- warning("can't exec %s: %m", _PATH_RUNCOM);
execv(_PATH_BSHELL, argv);
stall("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNCOM);
_exit(1); /* force single user mode */
@@ -1499,8 +1497,6 @@ runshutdown(void)
#ifdef LOGIN_CAP
setprocresources(RESOURCE_RC);
#endif
- execv(_PATH_RUNDOWN, argv + 1);
- warning("can't exec %s: %m", _PATH_RUNDOWN);
execv(_PATH_BSHELL, argv);
warning("can't exec %s for %s: %m", _PATH_BSHELL, _PATH_RUNDOWN);
_exit(1); /* force single user mode */