proper error message when no service set
This commit is contained in:
parent
2a46d5c4f9
commit
07fdda9725
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue