aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/su2/files/patch-su2.c_1
blob: a2c835efc1f269508ee6c3b93eacb0130810d04e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
--- su2.c.orig  Sun Aug 15 17:59:03 2004
+++ su2.c   Sun Aug 15 18:00:37 2004
@@ -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
@@ -182,17 +182,18 @@
 
 char   *malloc ();
 
+#if !(defined(BSD) && (BSD >= 199306))
 #ifdef OSF
 int    setpwent ();
-#else
+#elseif !(defined(BSD) && (BSD >= 199306))
 void   setpwent ();
 #endif
+#endif
 
-#ifndef sgi
+#if !defined(sgi) && !(defined(BSD) && (BSD >= 199306))
 struct passwd  *getpwuid ();
 struct passwd  *getpwnam ();
 void    endpwent ();
-int     chmod ();
 #endif
 
 struct passwd  *pw;
@@ -570,7 +571,7 @@
    }
     }
 
-#ifndef sgi
+#if !(defined(sgi) && (defined(BSD) && (BSD >= 199306)))
     setpwent ();
 #endif