mirror of https://github.com/mkerrisk/man-pages
user_namespaces.7: Minor tweaks to example program
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
8db3776096
commit
8f99aa89d9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue