Subject: Re: Kermit woes - my story
To: Mark F Willey <willey@ecn.purdue.edu>
From: Scott Reynolds <scottr@Plexus.COM>
List: current-users
Date: 07/29/1994 08:50:07
On Thu, 28 Jul 1994, Mark F Willey wrote:
> Kermit is suid to uucp, and /dev/tty0? is rw only for uucp.
>
> What does everyone else do to get it to work?
1) Get C-Kermit 5A(190) from
kermit.columbia.edu:/kermit/test/bin/cku190.tar.gz
2) Apply the appended patch.
3) Compile with "make bsd44 KFLAGS=-DNOCOTFMC"
--scott
*** ckutio.c.ORIG Wed Jul 27 10:36:32 1994
--- ckutio.c Wed Jul 27 10:36:08 1994
***************
*** 7177,7182 ****
--- 7177,7187 ----
* set-UID.
*/
+ #ifndef __NetBSD__
#define switchuid(hidden,active) setuid(active)
#define switchgid(hidden,active) setgid(active)
+ #else
+ #define switchuid(hidden,active) seteuid(active)
+ #define switchgid(hidden,active) setegid(active)
+ #endif
#endif /* SETREUID */
------------------------------------------------------------------------------