dst = dst ? dst : optarg;
if (!mountAddMountPtTail
(nsjconf, /* src= */ optarg, dst, /* fs_type= */ "",
- /* options= */ "", MS_BIND | MS_REC | MS_RDONLY, /* isDir= */
+ /* options= */ "", MS_BIND | MS_REC | MS_RDONLY,
+ /* isDir= */
NS_DIR_MAYBE, /* mandatory= */ true, NULL, NULL, NULL, 0,
/* is_symlink= */ false)) {
return false;
if (!mountAddMountPtTail
(nsjconf, /* src= */ optarg, dst, /* fs_type= */ "",
/* options= */ "", MS_BIND | MS_REC, /* isDir= */ NS_DIR_MAYBE,
- /* mandatory= */ true, NULL, NULL, NULL, 0, /* is_symlink= */
+ /* mandatory= */ true, NULL, NULL, NULL, 0,
+ /* is_symlink= */
false)) {
return false;
}
}
if (nsjconf->mount_proc == true) {
- if (!mountAddMountPtHead
- (nsjconf, /* src= */ NULL, "/proc", "proc", "",
- nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */ true, /* mandatory= */ true,
- NULL, NULL, NULL, 0, /* is_symlink= */ false)) {
+ if (!mountAddMountPtHead(nsjconf, /* src= */ NULL, "/proc", "proc", "",
+ nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */ true,
+ /* mandatory= */ true,
+ NULL, NULL, NULL, 0, /* is_symlink= */ false)) {
return false;
}
}
return false;
}
} else {
- if (!mountAddMountPtHead
- (nsjconf, /* src= */ NULL, "/", "tmpfs", /* options= */ "",
- nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */ true, /* mandatory= */ true,
- NULL, NULL, NULL, 0, /* is_symlink= */ false)) {
+ if (!mountAddMountPtHead(nsjconf, /* src= */ NULL, "/", "tmpfs", /* options= */ "",
+ nsjconf->is_root_rw ? 0 : MS_RDONLY, /* isDir= */ true,
+ /* mandatory= */ true,
+ NULL, NULL, NULL, 0, /* is_symlink= */ false)) {
return false;
}
}
}
if (argv[optind]) {
- nsjconf->argv = (const char *const *)&argv[optind];
+ nsjconf->argv = (const char **)&argv[optind];
}
if (nsjconf->argv == NULL || nsjconf->argv[0] == NULL) {
cmdlineUsage(argv[0]);