aboutsummaryrefslogtreecommitdiffstats
path: root/man7/user_namespaces.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2014-06-02 06:45:13 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2014-09-13 20:16:03 -0700
commit8f99aa89d93e3ed6108d3948ab83a5cc60a21fa6 (patch)
tree250fc0c3d001f114a309aff517cb059ee86d2f94 /man7/user_namespaces.7
parent8db377609614969731123b5c910764e266ad757b (diff)
downloadman-pages-8f99aa89d93e3ed6108d3948ab83a5cc60a21fa6.tar.gz
user_namespaces.7: Minor tweaks to example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7/user_namespaces.7')
-rw-r--r--man7/user_namespaces.711
1 files changed, 6 insertions, 5 deletions
diff --git a/man7/user_namespaces.7 b/man7/user_namespaces.7
index 67336df8c0..46b4e47a8e 100644
--- a/man7/user_namespaces.7
+++ b/man7/user_namespaces.7
@@ -756,14 +756,15 @@ update_map(char *mapping, char *map_file)
fd = open(map_file, O_RDWR);
if (fd == \-1) {
- fprintf(stderr, "ERROR: open %s: %s\\n", map_file, strerror(errno));
- return;
- //exit(EXIT_FAILURE);
+ fprintf(stderr, "ERROR: open %s: %s\\n", map_file,
+ strerror(errno));
+ exit(EXIT_FAILURE);
}
if (write(fd, mapping, map_len) != map_len) {
- fprintf(stderr, "ERROR: write %s: %s\\n", map_file, strerror(errno));
- //exit(EXIT_FAILURE);
+ fprintf(stderr, "ERROR: write %s: %s\\n", map_file,
+ strerror(errno));
+ exit(EXIT_FAILURE);
}
close(fd);