Bugzilla – Attachment 12782 Details for
Bug 8910
silent warnings triggered in about.pl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8910 - silent warnings triggered in about.pl
Bug-8910---silent-warnings-triggered-in-aboutpl.patch (text/plain), 1.08 KB, created by
Kyle M Hall (khall)
on 2012-10-12 13:33:51 UTC
(
hide
)
Description:
Bug 8910 - silent warnings triggered in about.pl
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-10-12 13:33:51 UTC
Size:
1.08 KB
patch
obsolete
>From 7b0c17fe65bbe4f6c8c33d0d8ffa89da21f9d10f Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Fri, 12 Oct 2012 14:29:59 +0800 >Subject: [PATCH] Bug 8910 - silent warnings triggered in about.pl >Content-Type: text/plain; charset="utf-8" > >In order to detect the apache version, there are multiple >commands used. These may not all exist, which triggers error log >entries. By simply adding " 2> /dev/null", the errors are no >longer generated. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > about.pl | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/about.pl b/about.pl >index 3296182..3c641b3 100755 >--- a/about.pl >+++ b/about.pl >@@ -55,8 +55,8 @@ if ($^O ne 'VMS') { > } > my $perlVersion = $]; > my $mysqlVersion = `mysql -V`; >-my $apacheVersion = `httpd -v`; >-$apacheVersion = `httpd2 -v` unless $apacheVersion; >+my $apacheVersion = `httpd -v 2> /dev/null`; >+$apacheVersion = `httpd2 -v 2> /dev/null` unless $apacheVersion; > $apacheVersion = (`/usr/sbin/apache2 -V`)[0] unless $apacheVersion; > my $zebraVersion = `zebraidx -V`; > >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8910
:
12779
| 12782