[hackers] [ubase] mount: only use source if not set || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Sun, 16 Mar 2014 05:04:17 +0100

commit 55fa13016cc2ecc38fca402efeb980ff23013fcb
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Sat Mar 15 21:45:09 2014 +0100

    mount: only use source if not set
    
    Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>

diff --git a/mount.c b/mount.c
index 605fca9..22abdf5 100644
--- a/mount.c
+++ b/mount.c
_AT_@ -135,9 +135,10 @@ main(int argc, char *argv[])
                                    strcmp(me->mnt_fsname, target) == 0 ||
                                    (source && strcmp(me->mnt_dir, source) == 0) ||
                                    (source && strcmp(me->mnt_fsname, source) == 0)) {
- if(!source)
+ if(!source) {
                                                 target = me->mnt_dir;
- source = me->mnt_fsname;
+ source = me->mnt_fsname;
+ }
                                         if(!oflag)
                                                 parseopts(me->mnt_opts, &flags, data, datasiz);
                                         if(!types)
Received on Sun Mar 16 2014 - 05:04:17 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 16 2014 - 05:12:14 CET