proper error message when no service set

This commit is contained in:
cinap_lenrek 2011-04-12 21:44:11 +00:00
parent 2a46d5c4f9
commit 07fdda9725

View file

@ -174,6 +174,9 @@ postservice(void)
char buf[3*NAMELEN];
int p[2];
if(service[0] == 0)
panic("no service name");
if(sfd < 0){
if(pipe(p) < 0)
panic("can't make a pipe");
@ -290,6 +293,7 @@ main(int argc, char **argv)
formatinit();
machinit();
conf.confdev = "/dev/sdC0/cwfs";
strcpy(service, "cwfs");
rfd = sfd = -1;