add missing ; to complain and enforce. copy fix over to audit

This commit is contained in:
John Johansen 2008-04-24 18:24:02 +00:00
parent fe9ae3968b
commit 51558b0b19
3 changed files with 9 additions and 4 deletions

View file

@ -107,8 +107,13 @@ for my $profiling (@profiling) {
print "\n";
setprofileflags($filename, "audit");
system("cat $filename | $parser -I$profiledir -r >/dev/null 2>&1")
if check_for_subdomain();
my $cmd_info = qx(cat $filename | $parser -I$profiledir -r 2>&1 1>/dev/null);
if ($? != 0) {
UI_Info($cmd_info);
exit $?;
}
# if check_for_subdomain();
} else {
if ($profiling =~ /^[^\/]+$/) {
UI_Info(sprintf(gettext('Can\'t find %s in the system path list. If the name of the application is correct, please run \'which %s\' as a user with the correct PATH environment set up in order to find the fully-qualified path.'), $profiling, $profiling));

View file

@ -107,7 +107,7 @@ for my $profiling (@profiling) {
print "\n";
setprofileflags($filename, "complain");
my $cmd_info = qx(cat $filename | $parser -I$profiledir -r 2>&1 1>/dev/null)
my $cmd_info = qx(cat $filename | $parser -I$profiledir -r 2>&1 1>/dev/null);
if ($? != 0) {
UI_Info($cmd_info);
exit $?;

View file

@ -106,7 +106,7 @@ for my $profiling (@profiling) {
print "\n";
setprofileflags($filename, "");
my $cmd_info = qx(cat $filename | $parser -I$profiledir -r 2>&1 1>/dev/null)
my $cmd_info = qx(cat $filename | $parser -I$profiledir -r 2>&1 1>/dev/null);
if ($? != 0) {
UI_Info($cmd_info);
exit $?;