diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2003-12-28 18:21:26 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2003-12-28 18:21:26 +0100 |
commit | b34cbddbd66baedc163d36dd281b63ef478f547a (patch) | |
tree | 2365eb533dafb9e650559ce49063b085e3b43625 /misc/util.c | |
parent | b969b1b8a5c13992cadb026114731958644540d8 (diff) | |
download | e2fsprogs-b34cbddbd66baedc163d36dd281b63ef478f547a.tar.gz |
Re-add FreeBSD support.
Tested on FreeBSD 5.2-CURRENT as of 2003-12-28.
Tested on FreeBSD 4.9-STABLE as of 2003-12-27.
Diffstat (limited to 'misc/util.c')
-rw-r--r-- | misc/util.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/util.c b/misc/util.c index b5e6f94b..80871353 100644 --- a/misc/util.c +++ b/misc/util.c @@ -97,7 +97,13 @@ void check_plausibility(const char *device) "did you specify it correctly?\n"), stderr); exit(1); } - if (!S_ISBLK(s.st_mode)) { +#ifdef __FreeBSD__ + /* On FreeBSD, all disk devices are character specials */ + if (!S_ISBLK(s.st_mode) && !S_ISCHR(s.st_mode)) +#else + if (!S_ISBLK(s.st_mode)) +#endif + { printf(_("%s is not a block special device.\n"), device); proceed_question(); return; |