mirror of git://git.suckless.org/ubase
mount: if no options flag given, use matched mount rule options
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
This commit is contained in:
parent
781cf0ed52
commit
5b5cb8447e
3
mount.c
3
mount.c
|
@ -100,6 +100,7 @@ main(int argc, char *argv[])
|
||||||
aflag = 1;
|
aflag = 1;
|
||||||
break;
|
break;
|
||||||
case 'o':
|
case 'o':
|
||||||
|
oflag = 1;
|
||||||
parseopts(EARGF(usage()), &flags, data, datasiz);
|
parseopts(EARGF(usage()), &flags, data, datasiz);
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
|
@ -134,6 +135,8 @@ main(int argc, char *argv[])
|
||||||
strcmp(me->mnt_fsname, target) == 0) {
|
strcmp(me->mnt_fsname, target) == 0) {
|
||||||
source = me->mnt_fsname;
|
source = me->mnt_fsname;
|
||||||
target = me->mnt_dir;
|
target = me->mnt_dir;
|
||||||
|
if(!oflag)
|
||||||
|
parseopts(me->mnt_opts, &flags, data, datasiz);
|
||||||
if(!types)
|
if(!types)
|
||||||
types = me->mnt_type;
|
types = me->mnt_type;
|
||||||
goto mountsingle;
|
goto mountsingle;
|
||||||
|
|
Loading…
Reference in New Issue