virtualization/app-emulation/open-vm-tools/files/wiper-warning-fix.patch
geos_one b0fa8f75c7 move
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/vmware@1340 6952d904-891a-0410-993b-d76249ca496b
2009-07-08 05:57:49 +00:00

15 lines
418 B
Diff

--- a/lib/wiper/wiperPosix.c
+++ b/lib/wiper/wiperPosix.c
@@ -998,8 +998,9 @@
break;
}
}
- } else {
- fgets(deviceName, sizeof deviceName, fp);
+ } else if (fgets(deviceName, sizeof deviceName, fp) != deviceName) {
+ Warning("%s: Error reading device name from /proc/devices.", __func__);
+ break;
}
}