--- src/straycats.c +++ src/straycats.c Wed Jul 9 19:33:23 2003 @@ -366,6 +366,7 @@ int fd; drop_effective_privs (); fd = create_tempfile ("zcat", &temp_name); + regain_effective_privs (); if (fd == -1) { error (0, errno, _("warning: can't create temp file %s"), @@ -373,7 +374,6 @@ return 0; } close (fd); - regain_effective_privs (); } dbf = MYDBM_RWOPEN (database);