aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGavin Lloyd <gavinhungry@gmail.com>2024-04-09 17:38:02 -0700
committerGavin Lloyd <gavinhungry@gmail.com>2024-04-09 17:49:41 -0700
commit6b316e0c9f1feb61bef3bb14b1356be8fbefcc17 (patch)
tree30e06fb2a56d58ef270c35f7e7fe48876293fa9b
parent5ebf0edb0a0531cba801c7791543c610725bf944 (diff)
downloadutil-linux-6b316e0c9f1feb61bef3bb14b1356be8fbefcc17.tar.gz
Fix misplaced else in mnt_update_already_done
See 477401f0de
-rw-r--r--libmount/src/tab_update.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c
index 87512af740..d44d190bc9 100644
--- a/libmount/src/tab_update.c
+++ b/libmount/src/tab_update.c
@@ -982,9 +982,9 @@ int mnt_update_already_done(struct libmnt_update *upd)
if (mnt_optstr_get_missing(fs->user_optstr, upd->fs->user_optstr, NULL) == 0) {
upd->missing_options = 1;
DBG(UPDATE, ul_debugobj(upd, " missing options detected"));
- }
- } else
- rc = 1;
+ } else
+ rc = 1;
+ }
} else if (upd->target) {
/* umount */