summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ufs-fsck/setup.c b/ufs-fsck/setup.c
index 9b61ac81..a3f67a09 100644
--- a/ufs-fsck/setup.c
+++ b/ufs-fsck/setup.c
@@ -41,7 +41,7 @@ setup (char *dev)
perror (dev);
return 0;
}
- if (!S_ISDIR (st.st_mode))
+ if (!S_ISCHR (st.st_mode))
{
pfatal ("%s is not a character device", dev);
if (!reply ("CONTINUE"))