FreeBSD Bugzilla – Attachment 108992 Details for
Bug 149936
[libmagic] [patch] wrong handling of decompression utilities in libmagic
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 643 bytes, created by
Martin Beran
on 2010-08-24 14:40:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Martin Beran
Created:
2010-08-24 14:40:02 UTC
Size:
643 bytes
patch
obsolete
>diff -ru contrib.orig/file/compress.c contrib/file/compress.c >--- contrib.orig/file/compress.c 2009-05-19 00:34:33.000000000 +0200 >+++ contrib/file/compress.c 2010-08-24 15:09:11.000000000 +0200 >@@ -197,6 +197,7 @@ > if (selrv == -1) { > if (errno == EINTR || errno == EAGAIN) > continue; >+ return -1; > } else if (selrv == 0 && cnt >= 5) { > return 0; > } else >@@ -381,7 +382,7 @@ > (void)fflush(stdout); > (void)fflush(stderr); > >- if ((fd != -1 && pipe(fdin) == -1) || pipe(fdout) == -1) { >+ if ((fd == -1 && pipe(fdin) == -1) || pipe(fdout) == -1) { > file_error(ms, errno, "cannot create pipe"); > return NODATA; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 149936
: 108992