]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
setns.2: ffix
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 9 Nov 2017 10:27:14 +0000 (11:27 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 9 Nov 2017 10:27:14 +0000 (11:27 +0100)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/setns.2

index d20106e734a25ec701734ce0480b2a2a6abbaeda..8188d62fd8a66afa44de5e4ada4a05e6706229aa 100644 (file)
@@ -284,14 +284,14 @@ main(int argc, char *argv[])
         exit(EXIT_FAILURE);
     }
 
-    fd = open(argv[1], O_RDONLY);  /* Get file descriptor for namespace */
+    fd = open(argv[1], O_RDONLY); /* Get file descriptor for namespace */
     if (fd == \-1)
         errExit("open");
 
-    if (setns(fd, 0) == \-1)        /* Join that namespace */
+    if (setns(fd, 0) == \-1)       /* Join that namespace */
         errExit("setns");
 
-    execvp(argv[2], &argv[2]);     /* Execute a command in namespace */
+    execvp(argv[2], &argv[2]);    /* Execute a command in namespace */
     errExit("execvp");
 }
 .EE