summaryrefslogtreecommitdiff
path: root/usr.bin/tip/cu.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2009-12-12 18:14:01 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2009-12-12 18:14:01 +0000
commit86582b11f5515b146106b5a05478a05e995c44a6 (patch)
tree95696c86808bf95012c21f0b59b5d9f48d4bfbeb /usr.bin/tip/cu.c
parent498498ae2c82c07d5e9ffb9b89d6223df241b667 (diff)
tip is not setuid or setgid anymore and there are no PRIV/EXPR commands, so
remove the code. ok deraadt
Diffstat (limited to 'usr.bin/tip/cu.c')
-rw-r--r--usr.bin/tip/cu.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tip/cu.c b/usr.bin/tip/cu.c
index 5c3fb1cc752..d8f12e11faf 100644
--- a/usr.bin/tip/cu.c
+++ b/usr.bin/tip/cu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cu.c,v 1.24 2009/10/27 23:59:44 deraadt Exp $ */
+/* $OpenBSD: cu.c,v 1.25 2009/12/12 18:14:00 nicm Exp $ */
/* $NetBSD: cu.c,v 1.5 1997/02/11 09:24:05 mrg Exp $ */
/*
@@ -165,7 +165,6 @@ getopt:
}
setbuf(stdout, NULL);
loginit();
- user_uid();
vinit();
switch (parity) {
case -1:
@@ -182,20 +181,17 @@ getopt:
if (HW && ttysetup(BR)) {
fprintf(stderr, "%s: unsupported speed %ld\n",
__progname, BR);
- daemon_uid();
(void)uu_unlock(uucplock);
exit(3);
}
if (con()) {
printf("Connect failed\n");
- daemon_uid();
(void)uu_unlock(uucplock);
exit(1);
}
if (!HW && ttysetup(BR)) {
fprintf(stderr, "%s: unsupported speed %ld\n",
__progname, BR);
- daemon_uid();
(void)uu_unlock(uucplock);
exit(3);
}