This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch, master, updated. glibc-2.13-195-g15cc7dd


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  15cc7dd182a6be79cbb01a5de4f13e958717bd69 (commit)
       via  f3799213a3ee8265ba47fad33d9cff71d97ab0d4 (commit)
      from  d79a9c949c84e7f0ba33e87447c47af833e9f11a (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=15cc7dd182a6be79cbb01a5de4f13e958717bd69

commit 15cc7dd182a6be79cbb01a5de4f13e958717bd69
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Mon May 16 09:10:36 2011 -0400

    Fix test for error_one_per_line mode in error

diff --git a/ChangeLog b/ChangeLog
index a80468a..c041559 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
 
+	[BZ #12766]
+	* misc/error.c (error_at_line): Ensure file_name and old_file_name
+	point to strings before performing equality test for error_one_per_line
+	mode.
+
 	[BZ #11697]
 	* login/programs/pt_chown.c (do_pt_chown): Always call chown.
 
diff --git a/NEWS b/NEWS
index 3fe6c9d..ef27e60 100644
--- a/NEWS
+++ b/NEWS
@@ -16,7 +16,7 @@ Version 2.14
   12510, 12511, 12518, 12527, 12541, 12545, 12551, 12582, 12583, 12587,
   12597, 12601, 12611, 12625, 12626, 12631, 12650, 12653, 12655, 12660,
   12681, 12685, 12711, 12713, 12714, 12717, 12723, 12724, 12734, 12738,
-  12746
+  12746, 12766
 
 * The RPC implementation in libc is obsoleted.  Old programs keep working
   but new programs cannot be linked with the routines in libc anymore.
diff --git a/misc/error.c b/misc/error.c
index 85d1cff..9a73a61 100644
--- a/misc/error.c
+++ b/misc/error.c
@@ -1,5 +1,5 @@
 /* Error handler for noninteractive utilities
-   Copyright (C) 1990-1998, 2000-2005, 2006 Free Software Foundation, Inc.
+   Copyright (C) 1990-1998, 2000-2006, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -272,7 +272,9 @@ error_at_line (int status, int errnum, const char *file_name,
 
       if (old_line_number == line_number
 	  && (file_name == old_file_name
-	      || strcmp (old_file_name, file_name) == 0))
+	      || (old_file_name != NULL
+		  && file_name != NULL
+		  && strcmp (old_file_name, file_name) == 0)))
 	/* Simply return and print nothing.  */
 	return;
 

http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=f3799213a3ee8265ba47fad33d9cff71d97ab0d4

commit f3799213a3ee8265ba47fad33d9cff71d97ab0d4
Author: Ulrich Drepper <drepper@gmail.com>
Date:   Mon May 16 01:43:56 2011 -0400

    Remove shortcut for call of chown
    
    The UID might differ, too.  Just call chown unconditionally.

diff --git a/ChangeLog b/ChangeLog
index f7f2618..a80468a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
 
+	[BZ #11697]
+	* login/programs/pt_chown.c (do_pt_chown): Always call chown.
+
 	[BZ #11820]
 	* sysdeps/unix/sysv/linux/x86_64/sys/user.h
 	(struct user_fpregs_struct): Avoid __uint*_t types.
diff --git a/NEWS b/NEWS
index ad92348..3fe6c9d 100644
--- a/NEWS
+++ b/NEWS
@@ -10,12 +10,13 @@ Version 2.14
 * The following bugs are resolved with this release:
 
   386, 6420, 7101, 9730, 9732, 9809, 10138, 10149, 10157, 11257, 11258,
-  11487, 11532, 11578, 11653, 11668, 11724, 11820, 11901, 11945, 11947,
-  11952, 11987, 12052, 12083, 12158, 12178, 12200, 12346, 12393, 12420,
-  12432, 12445, 12449, 12453, 12454, 12460, 12469, 12489, 12509, 12510,
-  12511, 12518, 12527, 12541, 12545, 12551, 12582, 12583, 12587, 12597,
-  12601, 12611, 12625, 12626, 12631, 12650, 12653, 12655, 12660, 12681,
-  12685, 12711, 12713, 12714, 12717, 12723, 12724, 12734, 12738, 12746
+  11487, 11532, 11578, 11653, 11668, 11697, 11724, 11820, 11901, 11945,
+  11947, 11952, 11987, 12052, 12083, 12158, 12178, 12200, 12346, 12393,
+  12420, 12432, 12445, 12449, 12453, 12454, 12460, 12469, 12489, 12509,
+  12510, 12511, 12518, 12527, 12541, 12545, 12551, 12582, 12583, 12587,
+  12597, 12601, 12611, 12625, 12626, 12631, 12650, 12653, 12655, 12660,
+  12681, 12685, 12711, 12713, 12714, 12717, 12723, 12724, 12734, 12738,
+  12746
 
 * The RPC implementation in libc is obsoleted.  Old programs keep working
   but new programs cannot be linked with the routines in libc anymore.
diff --git a/login/programs/pt_chown.c b/login/programs/pt_chown.c
index 4c36f2ce..9aa34e7 100644
--- a/login/programs/pt_chown.c
+++ b/login/programs/pt_chown.c
@@ -64,7 +64,7 @@ print_version (FILE *stream, struct argp_state *state)
 Copyright (C) %s Free Software Foundation, Inc.\n\
 This is free software; see the source for copying conditions.  There is NO\n\
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\
-"), "1999");
+"), "2011");
 }
 
 static char *
@@ -123,7 +123,7 @@ do_pt_chown (void)
 
   /* Set the owner to the real user ID, and the group to that special
      group ID.  */
-  if (st.st_gid != gid && chown (pty, getuid (), gid) < 0)
+  if (chown (pty, getuid (), gid) < 0)
     return FAIL_EACCES;
 
   /* Set the permission mode to readable and writable by the owner,

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                 |    8 ++++++++
 NEWS                      |   13 +++++++------
 login/programs/pt_chown.c |    4 ++--
 misc/error.c              |    6 ++++--
 4 files changed, 21 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]