From 520705cee8415546be6a97fee21bfa036e54c096 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 24 Feb 2010 09:30:40 +0000 Subject: 2010-02-24 Chris Johns * libmisc/shell/main_msdosfmt.c, libmisc/shell/shellconfig.h: Fix the alias as I did understand how it worked. * libfs/src/dosfs/msdos_format.c: Test for a block device. --- cpukit/libfs/src/dosfs/msdos_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libfs/src/dosfs/msdos_format.c') diff --git a/cpukit/libfs/src/dosfs/msdos_format.c b/cpukit/libfs/src/dosfs/msdos_format.c index e9d7cc2e5c..d424c54aa6 100644 --- a/cpukit/libfs/src/dosfs/msdos_format.c +++ b/cpukit/libfs/src/dosfs/msdos_format.c @@ -910,7 +910,7 @@ int msdos_format /* rtems feature: no block devices, all are character devices */ if ((ret_val == 0) && - (!S_ISCHR(stat_buf.st_mode))) { + (!S_ISBLK(stat_buf.st_mode))) { errno = ENOTTY; ret_val = -1; } -- cgit v1.2.3