SHA256
1
0
forked from pool/man
man/man-db-2.4.1-security2.dif

19 lines
415 B
Plaintext

--- 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);