minit

A small yet feature-complete init (http://fefe.de/minit/)
Log | Files | Refs | README | LICENSE

commit ae86c263e4a8f6c8b23537e93f333898b7556d8b
parent f4d345e3e02e9aaa8ce744c036654198c5aac4db
Author: leitner <leitner>
Date:   Tue, 20 Jul 2010 23:08:56 +0000

fix serdo

Diffstat:
Mserdo.c | 11++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/serdo.c b/serdo.c @@ -48,7 +48,7 @@ failornot: return 0; } else if (str_equal(argv[0],"ulimit")) { struct rlimit rl; - for (i=1; argv[i] && argv[i+1]; ++i) { + for (i=1; argv[i] && argv[i+1]; i+=2) { int id=-1; if (argv[i][0]!='-') { ulimitsyntax: @@ -133,13 +133,14 @@ int run(char* s,int last) { } else { *next=s; while (*s && *s!=' ' && *s!='\t') ++s; - if (!*s) break; - *s=0; - ++s; + if (*s) { + *s=0; + ++s; + } } ++next; } - *++next=0; + *next=0; return spawn(argv,last); }