3df8c3
diff -up util-linux-2.23.2/disk-utils/raw.c.kzak util-linux-2.23.2/disk-utils/raw.c
3df8c3
--- util-linux-2.23.2/disk-utils/raw.c.kzak	2013-06-13 09:46:10.382650297 +0200
3df8c3
+++ util-linux-2.23.2/disk-utils/raw.c	2015-01-13 14:51:24.877755962 +0100
3df8c3
@@ -220,7 +220,7 @@ static int query(int minor_raw, const ch
3df8c3
 	if (raw_name) {
3df8c3
 		struct stat statbuf;
3df8c3
 
3df8c3
-		if (!stat(raw_name, &statbuf))
3df8c3
+		if (stat(raw_name, &statbuf) != 0)
3df8c3
 			err(EXIT_RAW_ACCESS,
3df8c3
 			    _("Cannot locate raw device '%s'"), raw_name);
3df8c3
 		if (!S_ISCHR(statbuf.st_mode))