diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/dump/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/dump/main.c b/sbin/dump/main.c index 6af0995..a7ab509 100644 --- a/sbin/dump/main.c +++ b/sbin/dump/main.c @@ -312,6 +312,8 @@ main(int argc, char *argv[]) dt = fstabsearch(disk); if (dt != NULL) { disk = rawname(dt->fs_spec); + if (disk == NULL) + errx(X_STARTUP, "%s: unknown file system", dt->fs_spec); (void)strncpy(spcl.c_dev, dt->fs_spec, NAMELEN); (void)strncpy(spcl.c_filesys, dt->fs_file, NAMELEN); } else { |