ref: 1f95e98dddc420321a8942d9f3195d966c7cc6c0
parent: a13aa17e4a6ca065180085da1630b7dddfcc324c
author: Jacob Moody <[email protected]>
date: Wed Jun 29 20:56:10 EDT 2022
skelfs: dont mount if not asked to
--- a/sys/src/cmd/skelfs.c
+++ b/sys/src/cmd/skelfs.c
@@ -214,6 +214,7 @@
main(int argc, char **argv)
{
char *s, *mode;
+ char *mtpt;
int stdio;
s = nil;
@@ -241,7 +242,13 @@
usage();
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);
}
fs.infd = 0;