skelfs: dont mount if not asked to
This commit is contained in:
parent
a13aa17e4a
commit
1f95e98ddd
1 changed files with 8 additions and 1 deletions
|
@ -214,6 +214,7 @@ void
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
char *s, *mode;
|
char *s, *mode;
|
||||||
|
char *mtpt;
|
||||||
int stdio;
|
int stdio;
|
||||||
|
|
||||||
s = nil;
|
s = nil;
|
||||||
|
@ -241,7 +242,13 @@ main(int argc, char **argv)
|
||||||
usage();
|
usage();
|
||||||
|
|
||||||
if(stdio == 0){
|
if(stdio == 0){
|
||||||
postmountsrv(&fs, s, argc ? argv[0] : "/mnt/skel", MREPL);
|
if(s != nil && argc == 0)
|
||||||
|
mtpt = nil;
|
||||||
|
else if(argc)
|
||||||
|
mtpt = argv[0];
|
||||||
|
else
|
||||||
|
mtpt = "/mnt/skel";
|
||||||
|
postmountsrv(&fs, s, mtpt, MREPL);
|
||||||
exits(nil);
|
exits(nil);
|
||||||
}
|
}
|
||||||
fs.infd = 0;
|
fs.infd = 0;
|
||||||
|
|
Loading…
Reference in a new issue