Page MenuHomeFreeBSD

D16565.id46179.diff
No OneTemporary

D16565.id46179.diff

Index: sbin/init/init.c
===================================================================
--- sbin/init/init.c
+++ sbin/init/init.c
@@ -1086,6 +1086,17 @@
#ifdef LOGIN_CAP
setprocresources(RESOURCE_RC);
#endif
+
+ /*
+ * Try to directly execute the script first. If it
+ * fails, try the old method of passing the script path
+ * to sh(1). Don't complain if it fails because of
+ * the missing execute bit.
+ */
+ execv(script, argv + 1);
+ if (errno != EACCES)
+ warning("can't exec %s: %m", script);
+
execv(shell, argv);
stall("can't exec %s for %s: %m", shell, script);
_exit(1); /* force single user mode */

File Metadata

Mime Type
text/plain
Expires
Sat, May 30, 4:38 PM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33637115
Default Alt Text
D16565.id46179.diff (646 B)

Event Timeline