[libvirt] [PATCH] build: avoid strerror_r pitfalls
Eric Blake
eblake at redhat.com
Tue May 24 23:41:24 UTC 2011
In particular, this guarantees that virStrerror always gives a
useful result.
* .gnulib: Update to latest, for (lots of) strerror_r fixes.
---
This patch removes the need for Daniel's proposal:
https://www.redhat.com/archives/libvir-list/2011-May/msg01236.html
Now gnulib guarantees that strerror_r will never leave garbage
in the buffer.
.gnulib | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
* .gnulib 2c25c9e...f4c4af0 (67):
> docs: document recently fixed glibc printf bug
> closein-tests: convert to init.sh
> yesno-tests: convert to init.sh
> atexit-tests: ensure reliable exit status
> strerror_r-posix: Respect rules for use of AC_LIBOBJ.
> strerror_r: fix missing header
> strerror_r: fix AIX test failures
> strerror_r: fix Solaris test failures
> strerror_r: enforce POSIX recommendations
> test-perror2.c: avoid warning about unused variable
> perror: avoid spurious test failure on HP-UX
> tests: fix logic bug in init.sh
> utimensat: do not reference an out-of-scope buffer
> opendir-safer.c: don't clobber errno; don't close negative FD
> update from texinfo
> Fix recent ChangeLog entry.
> idcache: Fix module description.
> gnulib-tool: fix portability problem with MacOS sed
> hash: Simplify autoconf macro.
> getugroups: Fix module description.
> linkat: Simplify autoconf macro.
> linkat, renameat: Update dependencies.
> maint.mk: more tight_scope improvements
> maint.mk: generalize/improve the tight-scope rule
> verify: fix bug when gnulib <assert.h> is also included
> * doc/intprops.texi: fix typo in copyright date
> xgetcwd: Simplify autoconf macro.
> New module 'mktime-internal'.
> timegm: Correct mktime replacement statements.
> timegm: Simplify autoconf macro.
> clock-time: change to LGPLv2+.
> strerror_r: Fix comments.
> relocatable-prog-wrapper: Fix possible link error.
> relocatable-prog-wrapper: Assume strerror() exists.
> select: Simplify replacement idiom.
> mkdir-p: Simplify autoconf macro.
> Fix some mistakes in ChangeLog entries.
> strerror_r: avoid clobbering strerror on cygwin
> mkdtemp: Use gnulib naming conventions.
> strerror_r: avoid corrupting errno on Solaris
> strerror_r: avoid compiler warning
> strerror_r: simplify AIX code.
> test-perror: avoid spurious failure on FreeBSD
> strerror_r-posix: Remove unused dependencies.
> intprops: remove assumption about A|B representation
> perror: work around FreeBSD bug
> test-perror: check for strerror interactions
> test-perror: rewrite to use init script
> maint: replace misused "a" with "an"
> maint: correct misuse of "a" and "an"
> intprops-tests: work around HP-UX 11.23 cc bug with constants
> intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
> intprops-tests: revert unsigned part of previous change
> strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
> strerror_r: guarantee unchanged errno
> strerror_r: Reorder #if blocks.
> perror: Avoid clobbering the strerror buffer when possible.
> strerror_r: fix on newer cygwin
> strerror_r: Avoid clobbering the strerror buffer when possible.
> strerror_r: Fix test failure on mingw.
> strerror: relax test for Solaris
> strerror: enforce POSIX ruling on strerror(0)
> intprop-tests: port to older and more-pedantic compilers
> intprops: work around C compiler bugs
> intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
> strerror_r: Avoid clobbering the strerror buffer when possible.
> fnmatch: avoid compiler warning
diff --git a/.gnulib b/.gnulib
index 2c25c9e..f4c4af0 160000
--- a/.gnulib
+++ b/.gnulib
@@ -1 +1 @@
-Subproject commit 2c25c9ebe8db1415bfde25f0a451767332c8cf59
+Subproject commit f4c4af09bcf3f0497dc3347ecc0a0b3c9ee1ff63
--
1.7.4.4
More information about the libvir-list
mailing list