17cd33ab80
su2 is a replacement for the su program. su2 gives you the ability to masquerade with the UID of other users, using your own password to switch. Submitted by collver at linuxfreemail.com in PR#14141. Thanks! (MD5 checksum of the su2 distribution checked against FreeBSD ports' entry.)
25 lines
552 B
Text
25 lines
552 B
Text
$NetBSD: patch-ab,v 1.1.1.1 2002/06/04 09:56:38 cjep Exp $
|
|
|
|
--- su2.c.orig Thu Sep 7 13:10:11 1995
|
|
+++ su2.c
|
|
@@ -113,9 +113,9 @@
|
|
#ifndef NOSU2RC
|
|
char *UsersNameFile = ".su2rc";
|
|
#endif NOSU2RC
|
|
-char *SULog = "/usr/adm/sulog";
|
|
+char *SULog = SU2LOGFILE;
|
|
|
|
-char *UtmpFile = "/etc/utmp";
|
|
+char *UtmpFile = "/var/run/utmp";
|
|
|
|
#ifndef PATH
|
|
# ifdef BSD
|
|
@@ -188,7 +188,7 @@
|
|
void setpwent ();
|
|
#endif
|
|
|
|
-#ifndef sgi
|
|
+#if !defined(sgi) && !defined(__NetBSD__)
|
|
struct passwd *getpwuid ();
|
|
struct passwd *getpwnam ();
|
|
void endpwent ();
|