/[smecontribs]/rpms/smeserver-sendmail-wrapper/contribs9/smeserver-sendmail-wrapper-0.1-domainName.patch
ViewVC logotype

Contents of /rpms/smeserver-sendmail-wrapper/contribs9/smeserver-sendmail-wrapper-0.1-domainName.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Sat Mar 3 05:35:37 2018 UTC (6 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: smeserver-sendmail-wrapper-0_1-2_el6_sme, smeserver-sendmail-wrapper-0_1-4_el6_sme, smeserver-sendmail-wrapper-0_1-3_el6_sme, HEAD
* Fri Mar 02 2018 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-2.sme
- fix log not accessible [SME: 10525]
  moved to a www writable directory, also a logrotate has been added
- fix sendmail wrapper fails if not used by root

1 diff -Nur smeserver-sendmail-wrapper-0.1.old/root/usr/bin/sendmail-wrapper.pl smeserver-sendmail-wrapper-0.1/root/usr/bin/sendmail-wrapper.pl
2 --- smeserver-sendmail-wrapper-0.1.old/root/usr/bin/sendmail-wrapper.pl 2017-08-18 12:39:53.000000000 -0400
3 +++ smeserver-sendmail-wrapper-0.1/root/usr/bin/sendmail-wrapper.pl 2018-03-03 00:33:12.478000000 -0500
4 @@ -8,14 +8,12 @@
5 use Email::Address;
6 use Email::MessageID;
7 use Email::Date::Format qw(email_date);
8 -use esmith::ConfigDB;
9 -
10 -our $db = esmith::ConfigDB->open();
11 +use Net::Domain qw(hostname hostfqdn hostdomain domainname);
12
13 my $user = getpwuid( $< );
14 my $smtp_password = 'password';
15 my $smtp_default_password = 'password';
16 -my $server = $db->get_value('DomainName') || $db->get_value('DomainName') || 'localhost';
17 +my $server = hostdomain () || hostfqdn () || domainname () || 'localhost';
18 my $input = '';
19 my $to_string = '';
20 my $from_string = '';

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed