Skip to content
Snippets Groups Projects
Commit 50c465f4 authored by Andreas Dilger's avatar Andreas Dilger
Browse files

Fix this bug, not sure why my CVS didn't show this as a diff.

b=3222
parent 37173761
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ int main( int argc, char **argv) ...@@ -46,7 +46,7 @@ int main( int argc, char **argv)
fprintf(stderr, "%s: created device other than requested: (%d,%d) instead of (%d,%d)\n", prog, major(st.st_rdev),minor(st.st_rdev),major(device),minor(device)); fprintf(stderr, "%s: created device other than requested: (%d,%d) instead of (%d,%d)\n", prog, major(st.st_rdev),minor(st.st_rdev),major(device),minor(device));
return 4; return 4;
} }
if (!S_ISCHR(st.st_mode)) { if (!S_ISBLK(st.st_mode)) {
fprintf(stderr, "%s: created device of different type. Requested block device, got mode %o\n", prog, st.st_mode); fprintf(stderr, "%s: created device of different type. Requested block device, got mode %o\n", prog, st.st_mode);
return 5; return 5;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment