]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Re-fix for bug 21253: fix calling conventions for syncshadowdb so that a phony parame...
authorjustdave%syndicomm.com <>
Mon, 11 Jun 2001 00:15:56 +0000 (00:15 +0000)
committerjustdave%syndicomm.com <>
Mon, 11 Jun 2001 00:15:56 +0000 (00:15 +0000)
r= tara

globals.pl
syncshadowdb

index 0f91aeb9ec3d2886c429e4872278d2189dd6f054..2b3456959f7bb86832b8565dbc813962a54e7253 100644 (file)
@@ -117,10 +117,11 @@ sub SyncAnyPendingShadowChanges {
                 return;
             } elsif (defined $pid) {
                 # child process code runs here
-                exec("./syncshadowdb",[]) or die "Unable to exec syncshadowdb: $!";
-                # passing the empty list as a second parameter tricks it into
-                # using execvp instead of running a shell, but still doesn't
-                # pass any parameters to syncshadowdb
+                exec("./syncshadowdb","--") or die "Unable to exec syncshadowdb: $!";
+                # the idea was that passing the second parameter tricks it into
+                # using execvp instead of running a shell. Not really necessary since
+                # there are no shell meta-characters, but it passes our tinderbox
+                # test that way. :) http://bugzilla.mozilla.org/show_bug.cgi?id=21253
             } elsif ($! =~ /No more process/) {
                 # recoverable fork error, try again in 5 seconds
                 sleep 5;
index 7dce870380a1492358094fc0c1a680789a0d084a..471b6d6ad15818e5db8361c0fdd01e3d3c7cd81e 100755 (executable)
@@ -51,6 +51,9 @@ foreach my $opt (@ARGV) {
     } elsif ($opt eq '-syncall') {
         $syncall = 1;
         $verbose = 1;
+    } elsif ($opt eq '--') {
+        # do nothing - null parameter so we can use
+        # multi-param system() call in globals.pl
     } else {
         Usage();
     }