]> git.pld-linux.org Git - packages/apache1.git/commitdiff
- fix: use "cp -f", "rm -f" instead pure cp, rm. apache-1_3_12-6 apache-1_3_12-7
authorkloczek <kloczek@pld-linux.org>
Mon, 12 Jun 2000 16:13:54 +0000 (16:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apache-apxs_force_rm_cp.patch -> 1.1

apache-apxs_force_rm_cp.patch [new file with mode: 0644]

diff --git a/apache-apxs_force_rm_cp.patch b/apache-apxs_force_rm_cp.patch
new file mode 100644 (file)
index 0000000..4f124e8
--- /dev/null
@@ -0,0 +1,25 @@
+diff -Nru apache_1.3.12/src/support/apxs.pl apache_1.3.12.new/src/support/apxs.pl
+--- apache_1.3.12/src/support/apxs.pl  Mon Jun 12 18:37:55 2000
++++ apache_1.3.12.new/src/support/apxs.pl      Mon Jun 12 18:39:53 2000
+@@ -424,7 +424,7 @@
+         my $t = $f;
+         $t =~ s|^.+/([^/]+)$|$1|;
+         if ($opt_i) {
+-            push(@cmds, "cp $f $CFG_LIBEXECDIR/$t");
++            push(@cmds, "cp -f $f $CFG_LIBEXECDIR/$t");
+             push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t");
+         }
+@@ -512,9 +512,9 @@
+             if (open(FP, ">$CFG_SYSCONFDIR/$CFG_TARGET.conf.new")) {
+                 print FP $content;
+                 close(FP);
+-                system("cp $CFG_SYSCONFDIR/$CFG_TARGET.conf $CFG_SYSCONFDIR/$CFG_TARGET.conf.bak && " .
+-                       "cp $CFG_SYSCONFDIR/$CFG_TARGET.conf.new $CFG_SYSCONFDIR/$CFG_TARGET.conf && " .
+-                       "rm $CFG_SYSCONFDIR/$CFG_TARGET.conf.new");
++                system("cp -f $CFG_SYSCONFDIR/$CFG_TARGET.conf $CFG_SYSCONFDIR/$CFG_TARGET.conf.bak && " .
++                       "cp -f $CFG_SYSCONFDIR/$CFG_TARGET.conf.new $CFG_SYSCONFDIR/$CFG_TARGET.conf && " .
++                       "rm -f $CFG_SYSCONFDIR/$CFG_TARGET.conf.new");
+             } else {
+                 print STDERR "apxs:Error: unable to open configuration file\n";
+             }
This page took 0.061975 seconds and 4 git commands to generate.