From 25073c9645a4b7080edf33ba35f8bcd487991e67 Mon Sep 17 00:00:00 2001 From: green Date: Tue, 17 Dec 2002 21:23:36 +0000 Subject: Back out the previous commit, since there could be dire consequences if /etc/rc were accidentally executed (as requested by other committeers). --- sbin/init/init.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sbin') diff --git a/sbin/init/init.c b/sbin/init/init.c index 64ad43b..2ad5d95 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 */ -- cgit v1.1