ref: af9d14138857c9a01222ee26149c71def3343d6b
parent: 9339e73f25a2b32defaef602ed5654fc1aa34fcb
author: kvik <[email protected]>
date: Wed Apr 24 12:40:05 EDT 2019
revert back to having a default mtpt
--- a/unionfs.c
+++ b/unionfs.c
@@ -657,7 +657,7 @@
void
usage(void)
{
- fprint(2, "%s [-D] [-abC] -m mtpt | -s srv [[-c] path ...]\n", argv0);
+ fprint(2, "%s [-D] [-abC] [-M | -m mtpt] [-s srv] [[-c] path ...]\n", argv0);
exits("usage");
}
@@ -671,7 +671,7 @@
c = 0;
mflag = MREPL|MCREATE;
- mtpt = nil;
+ mtpt = "/mnt/union";
srv = nil;
ARGBEGIN{
case 'a':
@@ -692,6 +692,9 @@
case 'm':
mtpt = EARGF(usage());
break;
+ case 'M':
+ mtpt = nil;
+ break;
case 's':
srv = EARGF(usage());
break;
@@ -699,8 +702,6 @@
usage();
}ARGEND;
if(argc < 1)
- usage();
- if(mtpt == nil && srv == nil)
usage();
for(i = 0; i < argc; i++){
if(strncmp(argv[i], "-c", 2) == 0){