blob: ca7780f0ef5bc1efd7776adfafff8a3bc251797e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ad,v 1.1 2002/10/17 19:18:02 wiz Exp $
--- src/sendfiled.c.orig Tue Feb 6 00:42:53 2001
+++ src/sendfiled.c
@@ -4000,6 +4000,8 @@ void cleanup() {
* RETURN: nothing, but terminates program on error
*/
void setreugid() {
+ if ( getegid() == rgid && geteuid() == ruid )
+ return;
if (rgid && setegid(rgid)<0) {
printf("490 Internal error on setegid(%u): %s\r\n",
(unsigned int)rgid,strerror(errno));
|