diff options
author | Denis Vlasenko | 2009-02-15 05:51:19 +0000 |
---|---|---|
committer | Denis Vlasenko | 2009-02-15 05:51:19 +0000 |
commit | 28ea4298e380d73203890c0f42de68e9798396d8 (patch) | |
tree | 55c832fd42d8838f9d5f40d2b97bae93263e19e1 /util-linux/volume_id/get_devname.c | |
parent | 93b38208d1e7d759b3c8ed8e7eb91c10442033ff (diff) | |
download | busybox-28ea4298e380d73203890c0f42de68e9798396d8.zip busybox-28ea4298e380d73203890c0f42de68e9798396d8.tar.gz |
volume_id: abort early on read failures.
should help with probing missing fdd's
Diffstat (limited to 'util-linux/volume_id/get_devname.c')
-rw-r--r-- | util-linux/volume_id/get_devname.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/volume_id/get_devname.c b/util-linux/volume_id/get_devname.c index d82808f..45a4aee 100644 --- a/util-linux/volume_id/get_devname.c +++ b/util-linux/volume_id/get_devname.c @@ -37,7 +37,7 @@ get_label_uuid(int fd, char **label, char **uuid) if (ioctl(/*vid->*/fd, BLKGETSIZE64, &size) != 0) size = 0; - if (volume_id_probe_all(vid, 0, size) != 0) + if (volume_id_probe_all(vid, /*0,*/ size) != 0) goto ret; if (vid->label[0] != '\0' || vid->uuid[0] != '\0') { |