]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udev-builtin-blkid: use -errno not -1 as error code 5449/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 Feb 2017 21:42:46 +0000 (16:42 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 Feb 2017 21:42:51 +0000 (16:42 -0500)
The code that calls this function doesn't care, but it looks bad.

src/udev/udev-builtin-blkid.c

index 856376fc796af22325bc88c24cba45e952395773..9037aa1304d68a3b31c626babf73b961715ee59d 100644 (file)
@@ -193,7 +193,7 @@ static int probe_superblocks(blkid_probe pr) {
         int rc;
 
         if (fstat(blkid_probe_get_fd(pr), &st))
-                return -1;
+                return -errno;
 
         blkid_probe_enable_partitions(pr, 1);