Subject: Re: Compiling Kermit straight out of the box...
To: None <>
From: Mike Long <>
List: current-users
Date: 07/26/1994 22:27:20
>From: Dave Burgess <>
>Date: Tue, 26 Jul 1994 19:11:44 -0500 (CDT)
>n the past half hour, I ftped the source for kermit-190.
>Instead of changing the Makefile, I used the 'make bsd44c
>-KFLAGS=-DSAVEUIDS' options and it worked just fine.  This may solve
>some of the problems some of us are having with com ports.

I find these reports interesting, considering the fact that an
examination of ckutio.c shows that -DSAVEDUID does nothing unless
-DSETREUID is also used.  If you use both of them, then you get that
irritating warning from setreuid().  Are you running it setuid root?

I've had to use the patch below ever since the setreuid() warning was
put in.  I'll have to try submitting my prettied-up version of it to
C-Kermit's author again.  My kermit binary is setuid to uucp, and my
/etc/ttys sets the clocal flag on /dev/tty00 (my modem's com port).

diff -u ckutio.c\~ ckutio.c
--- ckutio.c~	Sun Jul 10 18:51:42 1994
+++ ckutio.c	Tue Jul 26 22:16:05 1994
@@ -7176,8 +7176,8 @@
  * systems that don't fit any of these three cases, we simply can't support
  * set-UID.
-#define switchuid(hidden,active)	setuid(active)
-#define switchgid(hidden,active)	setgid(active)
+#define switchuid(hidden,active)	seteuid(active)
+#define switchgid(hidden,active)	setegid(active)
 #endif /* SETREUID */

Mike Long                               
VLSI Design Engineer                    (PGP 2.6 public key available)
Analog Devices, CPD Division
Norwood, MA 02062 USA                assert(*this!=opinionof(Analog));