[hackers] [ubase] mount: if no options flag given, use matched mount rule options || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sat, 15 Mar 2014 18:52:07 +0100

commit 5b5cb8447e1316e8a4d2607e8d6fc53bd6d1bb48
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Mar 15 17:11:30 2014 +0100

    mount: if no options flag given, use matched mount rule options
    
    Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>

diff --git a/mount.c b/mount.c
index 6a4c2e9..3263424 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -100,6 +100,7 @@ main(int argc, char *argv[])
                 aflag = 1;
                 break;
         case 'o':
+ oflag = 1;
                 parseopts(EARGF(usage()), &flags, data, datasiz);
                 break;
         case 't':
_AT_@ -134,6 +135,8 @@ main(int argc, char *argv[])
                                    strcmp(me->mnt_fsname, target) == 0) {
                                         source = me->mnt_fsname;
                                         target = me->mnt_dir;
+ if(!oflag)
+ parseopts(me->mnt_opts, &flags, data, datasiz);
                                         if(!types)
                                                 types = me->mnt_type;
                                         goto mountsingle;
Received on Sat Mar 15 2014 - 18:52:07 CET

This archive was generated by hypermail 2.3.0 : Sat Mar 15 2014 - 19:00:23 CET