mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 19:00:07 +00:00
Remove shortcut for call of chown
The UID might differ, too. Just call chown unconditionally.
This commit is contained in:
parent
d79a9c949c
commit
f3799213a3
@ -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.
|
||||
|
13
NEWS
13
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.
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user