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