ref: baad50db9cefc370d747bf36c73f968856b37b4d
parent: 9387cf4ce05bb087ab655fc57466b3e861c58c16
author: kvik <kvik@a-b.xyz>
date: Tue Apr 23 14:26:30 EDT 2019
remove default mount point and -M option
--- a/unionfs.c
+++ b/unionfs.c
@@ -671,14 +671,14 @@
c = 0;
mflag = MREPL|MCREATE;
- mtpt = "/n/un";
+ mtpt = nil;
srv = nil;
ARGBEGIN{
case 'a':
- mflag = MAFTER;
+ mflag |= MAFTER;
break;
case 'b':
- mflag = MBEFORE;
+ mflag |= MBEFORE;
break;
case 'c':
c++;
@@ -692,9 +692,6 @@
case 'm':
mtpt = EARGF(usage());
break;
- case 'M':
- mtpt = nil;
- break;
case 's':
srv = EARGF(usage());
break;
@@ -702,6 +699,8 @@
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){