This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.19-394-g73ba67c
- From: schwab at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 14 May 2014 07:47:52 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.19-394-g73ba67c
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 73ba67cbc3941c3bcfda31a22a9d0d97ac928f3b (commit)
from 5e7698c6f152c93a73ee4140ad23f7171aa79ce0 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=73ba67cbc3941c3bcfda31a22a9d0d97ac928f3b
commit 73ba67cbc3941c3bcfda31a22a9d0d97ac928f3b
Author: Andreas Schwab <schwab@suse.de>
Date: Tue May 13 17:04:27 2014 +0200
Fix macro warning on HAVE_PT_CHOWN
diff --git a/ChangeLog b/ChangeLog
index e66dafc..7d9a8b7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-05-14 Andreas Schwab <schwab@suse.de>
+
+ * config.h.in (HAVE_PT_CHOWN): Define as 0.
+ * sysdeps/unix/grantpt.c (grantpt): Check HAVE_PT_CHOWN for value,
+ not definedness.
+
2014-05-14 Joseph Myers <joseph@codesourcery.com>
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_UTIMES):
diff --git a/config.h.in b/config.h.in
index b6e3623..a9ff1e3 100644
--- a/config.h.in
+++ b/config.h.in
@@ -251,7 +251,7 @@
#undef HAVE_ARM_PCS_VFP
/* The pt_chown binary is being built and used by grantpt. */
-#undef HAVE_PT_CHOWN
+#define HAVE_PT_CHOWN 0
/* ports/sysdeps/mips/configure.in */
/* Define if using the IEEE 754-2008 NaN encoding on the MIPS target. */
diff --git a/sysdeps/unix/grantpt.c b/sysdeps/unix/grantpt.c
index 410dc50..2cb277c 100644
--- a/sysdeps/unix/grantpt.c
+++ b/sysdeps/unix/grantpt.c
@@ -176,7 +176,7 @@ grantpt (int fd)
/* We have to use the helper program if it is available. */
helper:;
-#ifdef HAVE_PT_CHOWN
+#if HAVE_PT_CHOWN
pid_t pid = __fork ();
if (pid == -1)
goto cleanup;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
config.h.in | 2 +-
sysdeps/unix/grantpt.c | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources