Package: libpri Version: 1.4.3-2 Severity: normal Tags: patch User: [EMAIL PROTECTED] Usertags: origin-ubuntu intrepid ubuntu-patch
Hello! This patch fixes errors seen while compiling with -D_FORTIFY_SOURCE=2. Thanks, -Kees -- Kees Cook @outflux.net
diff -u libpri-1.4.3/debian/patches/bristuff.dpatch libpri-1.4.3/debian/patches/bristuff.dpatch --- libpri-1.4.3/debian/patches/bristuff.dpatch +++ libpri-1.4.3/debian/patches/bristuff.dpatch @@ -677,9 +677,9 @@ - else - fputs(tmp, stdout); + if (__pri_message && pri) { -+ if (pri->debugfd >= 0) -+ write(pri->debugfd, tmp, strlen(tmp)); -+ else ++ if (pri->debugfd >= 0) { ++ if (write(pri->debugfd, tmp, strlen(tmp))<0) {}; ++ } else + __pri_message(tmp, pri->span); + } else { + fputs(tmp, stdout); @@ -696,9 +696,9 @@ - else - fputs(tmp, stderr); + if (__pri_error && pri) { -+ if (pri->debugfd >= 0) -+ write(pri->debugfd, tmp, strlen(tmp)); -+ else ++ if (pri->debugfd >= 0) { ++ if (write(pri->debugfd, tmp, strlen(tmp))<0) {}; ++ } else + __pri_error(tmp, pri->span); + } else { + fputs(tmp, stderr);