diff options
Diffstat (limited to 'security/seahorse/files/patch-agent_seahorse-agent.c')
-rw-r--r-- | security/seahorse/files/patch-agent_seahorse-agent.c | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/security/seahorse/files/patch-agent_seahorse-agent.c b/security/seahorse/files/patch-agent_seahorse-agent.c deleted file mode 100644 index 25531909e..000000000 --- a/security/seahorse/files/patch-agent_seahorse-agent.c +++ /dev/null @@ -1,40 +0,0 @@ ---- agent/seahorse-agent.c.orig Thu May 19 00:15:36 2005 -+++ agent/seahorse-agent.c Thu Jul 28 01:32:39 2005 -@@ -273,18 +273,18 @@ main (int argc, char **argv) - const char *sockname; - GnomeProgram *program = NULL; - -- secmem_init (65536); -- - /* We need to drop privileges completely for security */ - #if defined(HAVE_SETRESUID) && defined(HAVE_SETRESGID) - - /* Not in header files for all OSs, even where present */ - int setresuid(uid_t ruid, uid_t euid, uid_t suid); - int setresgid(gid_t rgid, gid_t egid, gid_t sgid); -+ secmem_init (65536); - - if (setresuid (getuid (), getuid (), getuid ()) == -1 || - setresgid (getgid (), getgid (), getgid ()) == -1) - #else -+ secmem_init (65536); - if (setuid (getuid ()) == -1 || setgid (getgid ()) == -1) - #endif - err (1, _("couldn't drop privileges properly")); -@@ -301,7 +301,6 @@ main (int argc, char **argv) - * All functions after this point have to print messages - * nicely and not just called exit() - */ -- daemonize (sockname); - - /* Handle some signals */ - signal (SIGINT, on_quit); -@@ -314,6 +313,8 @@ main (int argc, char **argv) - /* Initialize our sub systems */ - seahorse_agent_actions_init (); - seahorse_agent_cache_init (); -+ -+ daemonize (sockname); - - if (seahorse_agent_io_init () == -1) - return 1; /* message already printed */ |