diff --git a/Userland/mount.cpp b/Userland/mount.cpp index 5ccd955b8d..3b66e5d60d 100644 --- a/Userland/mount.cpp +++ b/Userland/mount.cpp @@ -48,6 +48,10 @@ bool mount_all() line_view = line_view.substring_view(0, line_view.length() - 1); String line = line_view; + // Skip comments and blank lines. + if (line.is_empty() || line.starts_with("#")) + continue; + Vector parts = line.split('\t'); if (parts.size() < 3) { fprintf(stderr, "Invalid fstab entry: %s\n", line.characters());