From: tara%tequilarista.org <> Date: Thu, 18 May 2000 04:29:31 +0000 (+0000) Subject: Making all system calls use paramter arguments X-Git-Tag: bugzilla-2.12~292 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10c004c5600e0806cf15d72c902375c158f42e87;p=thirdparty%2Fbugzilla.git Making all system calls use paramter arguments --- diff --git a/backdoor.cgi b/backdoor.cgi index b4848a1bb9..f46cb67592 100755 --- a/backdoor.cgi +++ b/backdoor.cgi @@ -175,4 +175,4 @@ foreach my $cc (split(/,/, $::FORM{'cc'})) { } print "Created bugzilla bug $zillaid\n"; -system("./processmail $zillaid"); +system("./processmail", $zillaid); diff --git a/checksetup.pl b/checksetup.pl index 0b76a8fdcc..f283962aeb 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -1668,7 +1668,7 @@ if ( CountIndexes('keywords') != 3 ) { # Final checks... if ($regenerateshadow) { print "Now regenerating the shadow database for all bugs.\n"; - system("./processmail regenerate"); + system("./processmail", "regenerate"); } unlink "data/versioncache"; diff --git a/createattachment.cgi b/createattachment.cgi index fa370d7103..038b63094f 100755 --- a/createattachment.cgi +++ b/createattachment.cgi @@ -106,7 +106,7 @@ What kind of file is this? "Created an attachment (id=$attachid)\n$desc\n"); print "

Attachment to bug $id created

\n"; - system("./processmail $id $::COOKIE{'Bugzilla_login'}"); + system("./processmail", $id, $::COOKIE{'Bugzilla_login'}); print "
Go Back to BUG# $id
\n"; } diff --git a/doeditparams.cgi b/doeditparams.cgi index d37bb042a4..cc7b661071 100755 --- a/doeditparams.cgi +++ b/doeditparams.cgi @@ -73,7 +73,7 @@ WriteParams(); unlink "data/versioncache"; print "
";
-system("./syncshadowdb -v");
+system("./syncshadowdb", "-v");
 print "
"; print "OK, done.

\n"; diff --git a/post_bug.cgi b/post_bug.cgi index 5695e5f0c2..3f933e2d2f 100755 --- a/post_bug.cgi +++ b/post_bug.cgi @@ -229,7 +229,7 @@ foreach my $person (keys %ccids) { } print "

Bug $id posted

\n"; -system("./processmail $id $::COOKIE{'Bugzilla_login'}"); +system("./processmail", $id, $::COOKIE{'Bugzilla_login'}); print "
Back To BUG# $id
\n"; print "
Attach a file to this bug\n"; diff --git a/process_bug.cgi b/process_bug.cgi index 8d88ef85ce..11e6040874 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -512,7 +512,7 @@ SWITCH: for ($::FORM{'knob'}) { $::FORM{'comment'} .= "\n\n*** This bug has been marked as a duplicate of $num ***"; print "

Notation added to bug $num

\n"; - system("./processmail $num $::FORM{'who'}"); + system("./processmail", $num, $::FORM{'who'}); print "
Go To BUG# $num
\n"; last SWITCH; @@ -901,7 +901,7 @@ The changes made were: foreach my $k (keys(%dependencychanged)) { print "

Checking for dependency changes on bug $k

\n"; - system("./processmail $k $::FORM{'who'}"); + system("./processmail", $k, $::FORM{'who'}); print "
Go To BUG# $k
\n"; }