Applied, thanks!

include, le ven. 19 juin 2026 11:34:28 +0000, a ecrit:
> -s did nothing at all, with this patch, allow -s to be passed to 
> runsystem.hurd
> Signed-off-by: include <[email protected]>
> ---
>  init/init.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/init/init.c b/init/init.c
> index 2c993eb3..8f03b7c8 100644
> --- a/init/init.c
> +++ b/init/init.c
> @@ -35,7 +35,6 @@ static int single;
>  static struct argp_option
>  options[] =
>  {
> -  /* XXX: Currently, -s does nothing.  */
>    {"single-user", 's', NULL, 0, "Startup system in single-user mode", 0},
>    {NULL, 'a', NULL, 0, "Ignored for compatibility with sysvinit", 0},
>    {0}
> @@ -148,7 +147,7 @@ main (int argc, char **argv)
>    sa.sa_flags |= SA_RESTART;
>    sigaction (SIGCHLD, &sa, NULL);
>  
> -  char *args[] = { LIBEXECDIR "/runsystem.hurd", NULL };
> +  char *args[] = { LIBEXECDIR "/runsystem.hurd", single ? "-s" : NULL, NULL 
> };
>  
>    switch (child_pid = fork ())
>      {
> -- 
> 2.53.0
> 
> 

Reply via email to