ubase

suckless linux base utils
git clone git://git.2f30.org/ubase.git
Log | Files | Refs | README | LICENSE

commit 55fa13016cc2ecc38fca402efeb980ff23013fcb
parent df9e43884314a8dc5f15cb8c5bc8ae13d58dd10c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat Mar 15 21:45:09 +0100

mount: only use source if not set

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
mount.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/mount.c b/mount.c @@ -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)