]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
unshare: Fix code indentation
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 3 Apr 2026 07:35:20 +0000 (09:35 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 3 Apr 2026 07:35:20 +0000 (09:35 +0200)
Adjust indentation to clarify where these if and else blocks belong.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
sys-utils/unshare.c

index 9a7c9f617dd8ec3b8a91d3537a07a36103084ac1..82bdd65d10720993e1afbd216695d76c2ed8b608 100644 (file)
@@ -1135,18 +1135,18 @@ int main(int argc, char *argv[])
                        if (sigaction(SIGINT, &sa, NULL) == -1)
                                err(EXIT_FAILURE, _("sigaction SIGINT failed"));
 
-               /* Save old mask for child to restore */
-               if (sigemptyset(&sigset) != 0 ||
-                   sigprocmask(SIG_SETMASK, NULL, &oldsigset) != 0)
-                       err(EXIT_FAILURE, _("sigprocmask failed"));
-       } else {
-               /* Block signals to prevent "impatient parent" problem */
-               if (sigemptyset(&sigset) != 0 ||
-                   sigaddset(&sigset, SIGINT) != 0 ||
-                   sigaddset(&sigset, SIGTERM) != 0 ||
-                   sigprocmask(SIG_BLOCK, &sigset, &oldsigset) != 0)
-                       err(EXIT_FAILURE, _("sigprocmask block failed"));
-       }
+                       /* Save old mask for child to restore */
+                       if (sigemptyset(&sigset) != 0 ||
+                           sigprocmask(SIG_SETMASK, NULL, &oldsigset) != 0)
+                               err(EXIT_FAILURE, _("sigprocmask failed"));
+               } else {
+                       /* Block signals to prevent "impatient parent" problem */
+                       if (sigemptyset(&sigset) != 0 ||
+                           sigaddset(&sigset, SIGINT) != 0 ||
+                           sigaddset(&sigset, SIGTERM) != 0 ||
+                           sigprocmask(SIG_BLOCK, &sigset, &oldsigset) != 0)
+                               err(EXIT_FAILURE, _("sigprocmask block failed"));
+               }
 #ifdef HAVE_PIDFD_OPEN
                if (kill_child_signo != 0) {
                        /* make a connection to the original process (parent) */