ports/134526: misc/e2fsprogs-libuuid-1.41.5 infinite loop [patch]
Mark Andrews
Mark_Andrews at isc.org
Thu May 14 10:02:41 UTC 2009
I just realised left a perror() call in that patch.
Corrected patch.
Mark
--- lib/uuid/gen_uuid.c.orig 2009-04-16 03:12:25.000000000 +1000
+++ lib/uuid/gen_uuid.c 2009-05-14 19:55:07.000000000 +1000
@@ -423,6 +423,8 @@
memset(buf, 0, count);
while (count > 0) {
ret = read(fd, buf, count);
+ if (ret == 0)
+ return c;
if (ret < 0) {
if ((errno == EAGAIN) || (errno == EINTR))
continue;
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742 INTERNET: Mark_Andrews at isc.org
More information about the freebsd-ports-bugs
mailing list