Skip to content

Commit

Permalink
Fix rootfs_source with -M option
Browse files Browse the repository at this point in the history
  • Loading branch information
Moe-hacker committed Nov 22, 2024
1 parent a902f38 commit cbc4821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ruri.c
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ static void parse_args(int argc, char **_Nonnull argv, struct RURI_CONTAINER *_N
container->extra_ro_mountpoint[i] = NULL;
container->extra_ro_mountpoint[i + 1] = NULL;
if (container->rootfs_source == NULL) {
container->rootfs_source = strdup(argv[index]);
container->rootfs_source = realpath(argv[index - 1], NULL);
container->ro_root = true;
} else {
ruri_error("{red}You can only mount one source to / QwQ\n");
Expand Down

0 comments on commit cbc4821

Please sign in to comment.