open-vm-tools/open-vm-tools-wiperPosix.patch

21 lines
714 B
Diff

diff -ur open-vm-tools-2009.05.22-167859/lib/wiper/wiperPosix.c open-vm-tools-2009.05.22-167859.patched//lib/wiper/wiperPosix.c
--- open-vm-tools-2009.05.22-167859/lib/wiper/wiperPosix.c 2009-05-22 09:01:33.000000000 +0200
+++ open-vm-tools-2009.05.22-167859.patched//lib/wiper/wiperPosix.c 2009-05-23 10:15:47.000000000 +0200
@@ -1000,6 +1000,7 @@
FILE *fp;
int deviceNum;
char deviceName[256];
+ char *consumer;
dmNumEntries = 0;
fp = Posix_Fopen("/proc/devices", "r");
@@ -1013,7 +1014,7 @@
}
}
} else {
- fgets(deviceName, sizeof deviceName, fp);
+ consumer = fgets(deviceName, sizeof deviceName, fp);
}
}