From 10c004c5600e0806cf15d72c902375c158f42e87 Mon Sep 17 00:00:00 2001
From: "tara%tequilarista.org" <>
Date: Thu, 18 May 2000 04:29:31 +0000
Subject: Making all system calls use paramter arguments
---
backdoor.cgi | 2 +-
checksetup.pl | 2 +-
createattachment.cgi | 2 +-
doeditparams.cgi | 2 +-
post_bug.cgi | 2 +-
process_bug.cgi | 4 ++--
6 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/backdoor.cgi b/backdoor.cgi
index b4848a1bb..f46cb6759 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 0b76a8fdc..f283962ae 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 fa370d710..038b63094 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 d37bb042a..cc7b66107 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 5695e5f0c..3f933e2d2 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 8d88ef85c..11e604087 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";
}
--
cgit v1.2.3-24-g4f1b