summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-28 22:59:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-28 22:59:21 +0000
commitf7a8674035228ed2afb3e9257c08cc2cbd71b916 (patch)
treefdef7a7564cd0337a682b9c197faf3b81084f53f
parent42ef61ea65eb114042391477931127b76a22a454 (diff)
correct uid handling; markus
-rw-r--r--libexec/rpc.rstatd/rstatd.c6
-rw-r--r--libexec/rpc.rusersd/rusersd.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/libexec/rpc.rstatd/rstatd.c b/libexec/rpc.rstatd/rstatd.c
index 194e535d9c2..fe52c06664d 100644
--- a/libexec/rpc.rstatd/rstatd.c
+++ b/libexec/rpc.rstatd/rstatd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rstatd.c,v 1.10 2002/06/28 22:40:33 deraadt Exp $ */
+/* $OpenBSD: rstatd.c,v 1.11 2002/06/28 22:59:20 deraadt Exp $ */
/*-
* Copyright (c) 1993, John Brezak
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: rstatd.c,v 1.10 2002/06/28 22:40:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rstatd.c,v 1.11 2002/06/28 22:59:20 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -99,7 +99,7 @@ main(int argc, char *argv[])
setegid(pw->pw_gid);
setgid(pw->pw_gid);
seteuid(pw->pw_uid);
- setegid(pw->pw_uid);
+ setuid(pw->pw_uid);
}
if (argc == 2)
diff --git a/libexec/rpc.rusersd/rusersd.c b/libexec/rpc.rusersd/rusersd.c
index 00c60594683..3fd4fcebb5c 100644
--- a/libexec/rpc.rusersd/rusersd.c
+++ b/libexec/rpc.rusersd/rusersd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rusersd.c,v 1.7 2002/06/28 22:40:33 deraadt Exp $ */
+/* $OpenBSD: rusersd.c,v 1.8 2002/06/28 22:59:20 deraadt Exp $ */
/*-
* Copyright (c) 1993 John Brezak
@@ -29,7 +29,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: rusersd.c,v 1.7 2002/06/28 22:40:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: rusersd.c,v 1.8 2002/06/28 22:59:20 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -86,7 +86,7 @@ main(int argc, char *argv[])
setegid(pw->pw_gid);
setgid(pw->pw_gid);
seteuid(pw->pw_uid);
- setegid(pw->pw_uid);
+ setuid(pw->pw_uid);
}
/*