ubase

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

commit bd994c3a507a326c95b04263be7d68ffce3f6409
parent a056e2aa5444c2a2d07c25f94ce17af5e3340b4c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 15 Mar 2014 19:46:36 +0100

mount: fix bug where target mountpoint would not be used

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

Diffstat:
Mmount.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/mount.c b/mount.c @@ -135,8 +135,9 @@ 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) + target = me->mnt_dir; source = me->mnt_fsname; - target = me->mnt_dir; if(!oflag) parseopts(me->mnt_opts, &flags, data, datasiz); if(!types)