From c8d4d2f11d106f509a347787e223d863e8faa235 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 7 Sep 2007 19:33:56 +0000 Subject: messages: by popular request allow PATH to be customized at build time mount: smallish code shrink --- util-linux/mount.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'util-linux') diff --git a/util-linux/mount.c b/util-linux/mount.c index 3aadbf72d..91f09e15c 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -1527,11 +1527,10 @@ static int singlemount(struct mntent *mp, int ignore_busy) if (ENABLE_FEATURE_CLEAN_UP) free(filteropts); - if (rc && errno == EBUSY && ignore_busy) - rc = 0; + if (errno == EBUSY && ignore_busy) + return 0; if (rc < 0) bb_perror_msg("mounting %s on %s failed", mp->mnt_fsname, mp->mnt_dir); - return rc; } -- cgit v1.2.3