Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164332487
D18441.id51622.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D18441.id51622.diff
View Options
Index: sys/kern/init_main.c
===================================================================
--- sys/kern/init_main.c
+++ sys/kern/init_main.c
@@ -718,9 +718,8 @@
start_init(void *dummy)
{
struct image_args args;
- int options, error;
+ int error;
size_t pathlen;
- char flags[8], *flagp;
char *var, *path;
char *free_init_path, *tmp_init_path;
struct thread *td;
@@ -757,23 +756,11 @@
error = exec_args_add_fname(&args, path, UIO_SYSSPACE);
if (error != 0)
panic("%s: Can't add fname %d", __func__, error);
-
error = exec_args_add_arg(&args, path, UIO_SYSSPACE);
if (error != 0)
panic("%s: Can't add argv[0] %d", __func__, error);
-
- options = 0;
- flagp = &flags[0];
- *flagp++ = '-';
- if (boothowto & RB_SINGLE) {
- *flagp++ = 's';
- options++;
- }
- if (options == 0)
- *flagp++ = '-';
- *flagp++ = 0;
- KASSERT(flagp <= &flags[0] + sizeof(flags), ("Overran flags"));
- error = exec_args_add_arg(&args, flags, UIO_SYSSPACE);
+ if (boothowto & RB_SINGLE)
+ error = exec_args_add_arg(&args, "-s", UIO_SYSSPACE);
if (error != 0)
panic("%s: Can't add argv[0] %d", __func__, error);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 31, 9:34 PM (15 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35797296
Default Alt Text
D18441.id51622.diff (1 KB)
Attached To
Mode
D18441: Further simplify arguments to init.
Attached
Detach File
Event Timeline
Log In to Comment