]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix misplaced else in mnt_update_already_done
authorGavin Lloyd <gavinhungry@gmail.com>
Wed, 10 Apr 2024 00:38:02 +0000 (17:38 -0700)
committerGavin Lloyd <gavinhungry@gmail.com>
Wed, 10 Apr 2024 00:49:41 +0000 (17:49 -0700)
See 477401f0de

libmount/src/tab_update.c

index 87512af740542d024b156c1fc42d73bef4a52388..d44d190bc980c92b003104c7666345408c43c036 100644 (file)
@@ -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 */