From 7792c21583f7131ad63a9cb6e25b7ef38652d3a7 Mon Sep 17 00:00:00 2001 From: Adam Weinberger Date: Tue, 29 Jul 2014 15:00:12 +0000 Subject: Rename sysutils/ patch-xy patches to reflect the files they modify. --- sysutils/su2/files/patch-su2.c_1 | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 sysutils/su2/files/patch-su2.c_1 (limited to 'sysutils/su2/files/patch-su2.c_1') 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 + -- cgit v1.2.3