diff options
author | Jim Meyering <jim@meyering.net> | 2001-05-13 18:23:05 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-05-13 18:23:05 +0000 |
commit | a8219ddccda89887a37a7e64dd6795d08294a9e0 (patch) | |
tree | ec77e6aead43100cfeb4ba9c4f811c88d10b96c2 /src | |
parent | b8b5b8222070992b44c28ec2f3adb1050f07a608 (diff) | |
download | coreutils-a8219ddccda89887a37a7e64dd6795d08294a9e0.tar.xz |
(main): Check for NODEV device only if NODEV is defined.
Diffstat (limited to 'src')
-rw-r--r-- | src/mknod.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mknod.c b/src/mknod.c index 0491a7f3c..a67a74283 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -186,8 +186,10 @@ numbers must be specified")); error (1, 0, _("invalid minor device number %s"), quote (s_minor)); device = makedev (i_major, i_minor); +#ifdef NODEV if (device == NODEV) error (1, 0, _("invalid device %s %s"), s_major, s_minor); +#endif if (mknod (argv[optind], newmode | node_type, device) != 0) error (1, errno, "%s", quote (argv[optind])); |