From: Gavin Lloyd Date: Wed, 10 Apr 2024 00:38:02 +0000 (-0700) Subject: Fix misplaced else in mnt_update_already_done X-Git-Tag: archive/raspbian/2.40.2-8+rpi1~1^2^2^2^2^2^2^2^2^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=97a5c13fd12c58e93eba77d50cb4a39df0e43fd2;p=util-linux.git Fix misplaced else in mnt_update_already_done See 477401f0de (cherry picked from commit 6b316e0c9f1feb61bef3bb14b1356be8fbefcc17) Gbp-Pq: Topic upstream Gbp-Pq: Name Fix-misplaced-else-in-mnt_update_already_done.patch --- diff --git a/libmount/src/tab_update.c b/libmount/src/tab_update.c index 87512af..d44d190 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 */