diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | login/programs/pt_chown.c | 6 |
2 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2015-10-19 Geoffrey Thomas <geofft@ldpreload.com> + + * login/programs/pt_chown.c: Include signal.h + (main): Clear any signal mask from the parent process. + 2015-10-19 Joseph Myers <joseph@codesourcery.com> * configure.ac (libc_cv_gnu89_inline): Remove configure test. diff --git a/login/programs/pt_chown.c b/login/programs/pt_chown.c index e8d4716..4f67af7 100644 --- a/login/programs/pt_chown.c +++ b/login/programs/pt_chown.c @@ -23,6 +23,7 @@ #include <grp.h> #include <libintl.h> #include <locale.h> +#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -148,6 +149,11 @@ main (int argc, char *argv[]) uid_t euid = geteuid (); uid_t uid = getuid (); int remaining; + sigset_t signalset; + + /* Clear any signal mask from the parent process. */ + sigemptyset (&signalset); + sigprocmask (SIG_SETMASK, &signalset, NULL); if (argc == 1 && euid == 0) { |