Skip to content

Commit e043d80

Browse files
Added an small warning if the proc was not mounted in /proc
1 parent 260651c commit e043d80

File tree

1 file changed

+4
-0
lines changed
  • source/kernel/C/shell/commands

1 file changed

+4
-0
lines changed

source/kernel/C/shell/commands/mount.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ int cmd_mount(int argc, char** argv)
3535
return 1;
3636

3737
procfs_init();
38+
39+
if(strcmp(mount_point, "/proc") != 0)
40+
printf("mount: warning mounting \'proc\' on non-standard path.");
41+
3842
printf("mount: mounted " red_color "%s" reset_color " at \'%s\'", device, mount_point);
3943
return 0;
4044
}

0 commit comments

Comments
 (0)