summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/uidswap.c b/uidswap.c
index 72c2cc6ef..d81fde9d2 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -7,7 +7,7 @@
7 */ 7 */
8 8
9#include "includes.h" 9#include "includes.h"
10RCSID("$Id: uidswap.c,v 1.2 1999/11/24 13:26:23 damien Exp $"); 10RCSID("$Id: uidswap.c,v 1.3 1999/11/25 00:55:00 damien Exp $");
11 11
12#include "ssh.h" 12#include "ssh.h"
13#include "uidswap.h" 13#include "uidswap.h"
@@ -66,10 +66,11 @@ restore_uid()
66 if (seteuid(saved_euid) < 0) 66 if (seteuid(saved_euid) < 0)
67 debug("seteuid %d: %.100s", (int) saved_euid, strerror(errno)); 67 debug("seteuid %d: %.100s", (int) saved_euid, strerror(errno));
68#else /* SAVED_IDS_WORK_WITH_SETEUID */ 68#else /* SAVED_IDS_WORK_WITH_SETEUID */
69 /* We are unable to restore the real uid to its unprivileged 69 /*
70 value. */ 70 * We are unable to restore the real uid to its unprivileged value.
71 /* Propagate the real uid (usually more privileged) to effective 71 * Propagate the real uid (usually more privileged) to effective uid
72 uid as well. */ 72 * as well.
73 */
73 setuid(getuid()); 74 setuid(getuid());
74#endif /* SAVED_IDS_WORK_WITH_SETEUID */ 75#endif /* SAVED_IDS_WORK_WITH_SETEUID */
75} 76}