aboutsummaryrefslogtreecommitdiff
path: root/sysutils/su2/files/patch-su2.c_1
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-29 15:00:12 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-29 15:00:12 +0000
commit7792c21583f7131ad63a9cb6e25b7ef38652d3a7 (patch)
tree35ae86a1ec3a303f6ac7c0146111c635eff41fb4 /sysutils/su2/files/patch-su2.c_1
parent41798f8399a11836022a4907c51bf17bbc2791f5 (diff)
downloadports-7792c21583f7131ad63a9cb6e25b7ef38652d3a7.tar.gz
ports-7792c21583f7131ad63a9cb6e25b7ef38652d3a7.zip
Notes
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
+