diff options
author | Karel Zak | 2015-01-13 09:53:46 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-13 09:53:46 +0100 |
commit | a434e2398ae9ac5ccf3ec5ec7d50638a38ae95f6 (patch) | |
tree | 831ca630aacfbd6fc5df8eee78888b18e8ad8700 | |
parent | hwclock: don't check CMOS automatically on x86_64 (diff) | |
download | kernel-qcow2-util-linux-a434e2398ae9ac5ccf3ec5ec7d50638a38ae95f6.tar.gz kernel-qcow2-util-linux-a434e2398ae9ac5ccf3ec5ec7d50638a38ae95f6.tar.xz kernel-qcow2-util-linux-a434e2398ae9ac5ccf3ec5ec7d50638a38ae95f6.zip |
raw: fix raw query
Bug introduced by commit cd121363.
References: https://bugzilla.redhat.com/show_bug.cgi?id=1181444
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | disk-utils/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-utils/raw.c b/disk-utils/raw.c index cc6690145..d29ff1ba3 100644 --- a/disk-utils/raw.c +++ b/disk-utils/raw.c @@ -224,7 +224,7 @@ static int query(int minor_raw, const char *raw_name, int quiet) if (raw_name) { struct stat statbuf; - if (!stat(raw_name, &statbuf)) + if (stat(raw_name, &statbuf) != 0) err(EXIT_RAW_ACCESS, _("Cannot locate raw device '%s'"), raw_name); if (!S_ISCHR(statbuf.st_mode)) |