]> git.pld-linux.org Git - packages/ircd-hybrid.git/commitdiff
add open-3-args patch
authorAria <aredridel@nbtsc.org>
Sat, 16 Feb 2013 22:50:06 +0000 (15:50 -0700)
committerAria <aredridel@nbtsc.org>
Sat, 16 Feb 2013 22:57:37 +0000 (15:57 -0700)
ircd-hybrid-open-3-args.patch [new file with mode: 0644]
ircd-hybrid.spec

diff --git a/ircd-hybrid-open-3-args.patch b/ircd-hybrid-open-3-args.patch
new file mode 100644 (file)
index 0000000..f5cf2ce
--- /dev/null
@@ -0,0 +1,20 @@
+diff -ur ircd-hybrid-7.0.3-o/src/md5.c ircd-hybrid-7.0.3/src/md5.c
+--- ircd-hybrid-7.0.3-o/src/md5.c      2002-11-24 01:27:15.000000000 -0700
++++ ircd-hybrid-7.0.3/src/md5.c        2013-02-16 15:48:03.000000000 -0700
+@@ -157,14 +157,10 @@
+   int fd;
+ #ifdef        RPATH
+-  fd = open(RPATH, O_WRONLY|O_CREAT|O_TRUNC);
++  fd = open(RPATH, O_WRONLY|O_CREAT|O_TRUNC, 0600);
+   if (fd > 0)
+     {
+       write(fd, seed_char, 16);
+-/* by default on VMS, files can only be read by their owner */
+-#ifndef VMS
+-      fchmod(fd, 0600);
+-#endif
+       close(fd);
+     }
+ #endif
+Only in ircd-hybrid-7.0.3/src: md5.c~
index f3e3c409472086cef33ece4b3a9294b68fb55b29..6e04840dbee2e0d92998ab19c8e2fabf7d4b8c67 100644 (file)
@@ -16,7 +16,7 @@ Release:      5
 Epoch:         1
 License:       GPL v2
 Group:         Daemons
-Source0:       http://dl.sourceforge.net/ircd-hybrid/%{name}-%{version}.tgz
+Source0:       http://downloads.sourceforge.net/ircd-hybrid/%{name}-%{version}.tgz
 # Source0-md5: 5e5d93dbd55e6865d75ee18a2b56170f
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
@@ -24,6 +24,7 @@ Source3:      %{name}.conf
 Patch0:                %{name}-config.patch
 Patch1:                %{name}-change_uid.patch
 Patch2:                %{name}-opt.patch
+Patch3:                %{name}-open-3-args.patch
 URL:           http://www.ircd-hybrid.org/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -66,6 +67,7 @@ IPv6.
 %patch0 -p1
 %patch1        -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 mv -f autoconf/{configure.in,acconfig.h} .
This page took 0.067173 seconds and 4 git commands to generate.