/[packages]/cauldron/apcupsd/current/SOURCES/apcupsd-3.14.12-default-host.patch
ViewVC logotype

Contents of /cauldron/apcupsd/current/SOURCES/apcupsd-3.14.12-default-host.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 792321 - (show annotations) (download)
Tue Oct 21 11:53:38 2014 UTC (9 years, 6 months ago) by luigiwalser
File size: 368 byte(s)
enhance apcaccess fix from upstream
1 --- apcupsd-3.14.12/src/apcaccess.c~ 2014-03-28 22:51:54.000000000 -0400
2 +++ apcupsd-3.14.12/src/apcaccess.c 2014-08-31 22:27:35.772380363 -0400
3 @@ -205,7 +205,7 @@ int main(int argc, char **argv)
4 host = argv[optind + 1];
5
6 // If still no host, use default
7 - if (!host)
8 + if (!host || !*host)
9 host = DEFAULT_HOST;
10
11 // Separate host and port

  ViewVC Help
Powered by ViewVC 1.1.30