summaryrefslogtreecommitdiff
path: root/sysutils/su2/files/patch-su2.c_1
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/su2/files/patch-su2.c_1')
-rw-r--r--sysutils/su2/files/patch-su2.c_145
1 files changed, 45 insertions, 0 deletions
diff --git a/sysutils/su2/files/patch-su2.c_1 b/sysutils/su2/files/patch-su2.c_1
new file mode 100644
index 000000000000..a2c835efc1f2
--- /dev/null
+++ b/sysutils/su2/files/patch-su2.c_1
@@ -0,0 +1,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
+