Declare the child and pid variable at the beginning of a block. This
fixes a compilation issue with gcc 2.95. The intent is the same as Gentoo's patch shadow-4.0.12-gcc2.patch.
This commit is contained in:
parent
15f43716c1
commit
8d527f156d
@ -1,3 +1,8 @@
|
|||||||
|
2007-11-14 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
* src/newgrp.c, NEWS: Declare the child and pid variable at the
|
||||||
|
beginning of a block. This fixes a compilation issue with gcc 2.95.
|
||||||
|
|
||||||
2007-11-14 Nicolas François <nicolas.francois@centraliens.net>
|
2007-11-14 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* src/Makefile, NEWS: Add a suidperms variable. This should ease
|
* src/Makefile, NEWS: Add a suidperms variable. This should ease
|
||||||
|
3
NEWS
3
NEWS
@ -12,6 +12,9 @@ shadow-4.0.18.1 -> shadow-4.0.18.2 UNRELEASED
|
|||||||
directly give up.
|
directly give up.
|
||||||
- The permissions of the suid binaries is now configurable in
|
- The permissions of the suid binaries is now configurable in
|
||||||
src/Makefile.am. Note that changing the permissions is not recommended.
|
src/Makefile.am. Note that changing the permissions is not recommended.
|
||||||
|
- newgrp.c: Declare the child and pid variable at the beginning of a block.
|
||||||
|
This fixes a compilation issue with gcc 2.95. The intent is the same as
|
||||||
|
Gentoo's patch shadow-4.0.12-gcc2.patch.
|
||||||
|
|
||||||
shadow-4.0.18.1 -> shadow-4.0.18.2 28-10-2007
|
shadow-4.0.18.1 -> shadow-4.0.18.2 28-10-2007
|
||||||
|
|
||||||
|
@ -454,6 +454,7 @@ int main (int argc, char **argv)
|
|||||||
* avoid any possibility of the parent being stopped when it
|
* avoid any possibility of the parent being stopped when it
|
||||||
* receives SIGCHLD from the terminating subshell. -- JWP
|
* receives SIGCHLD from the terminating subshell. -- JWP
|
||||||
*/
|
*/
|
||||||
|
{
|
||||||
pid_t child, pid;
|
pid_t child, pid;
|
||||||
|
|
||||||
signal (SIGINT, SIG_IGN);
|
signal (SIGINT, SIG_IGN);
|
||||||
@ -502,6 +503,7 @@ int main (int argc, char **argv)
|
|||||||
signal (SIGTSTP, SIG_DFL);
|
signal (SIGTSTP, SIG_DFL);
|
||||||
signal (SIGTTIN, SIG_DFL);
|
signal (SIGTTIN, SIG_DFL);
|
||||||
signal (SIGTTOU, SIG_DFL);
|
signal (SIGTTOU, SIG_DFL);
|
||||||
|
}
|
||||||
#endif /* USE_PAM */
|
#endif /* USE_PAM */
|
||||||
}
|
}
|
||||||
#endif /* USE_SYSLOG */
|
#endif /* USE_SYSLOG */
|
||||||
|
Loading…
Reference in New Issue
Block a user