diff options
author | NIIBE Yutaka <[email protected]> | 2016-10-07 01:45:22 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2016-10-07 01:45:22 +0000 |
commit | fc0b392e766af8127094e8b529d25abb84ad1d65 (patch) | |
tree | 5a25deae2db66cbe5257ccd701e94308f826fe2e /scd/scdaemon.c | |
parent | common: Avoid pointer arithmetic on string literals. (diff) | |
download | gnupg-fc0b392e766af8127094e8b529d25abb84ad1d65.tar.gz gnupg-fc0b392e766af8127094e8b529d25abb84ad1d65.zip |
agent, dirmngr, scd: Fix init_common_subsystems.
* common/init.c (_init_common_subsystems): Don't call
gpgrt_set_syscall_clamp in this function.
* agent/gpg-agent.c, dirmngr/dirmngr.c, scd/scdaemon.c: Call
gpgrt_set_syscall_clamp after npth_init.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r-- | scd/scdaemon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c index 3571e6614..df1abe8b7 100644 --- a/scd/scdaemon.c +++ b/scd/scdaemon.c @@ -723,6 +723,7 @@ main (int argc, char **argv ) #endif npth_init (); + gpgrt_set_syscall_clamp (npth_unprotect, npth_protect); /* If --debug-allow-core-dump has been given we also need to switch the working directory to a place where we can actually @@ -862,6 +863,7 @@ main (int argc, char **argv ) /* This is the child. */ npth_init (); + gpgrt_set_syscall_clamp (npth_unprotect, npth_protect); /* Detach from tty and put process into a new session. */ if (!nodetach ) |