1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Ticket #2 (closed defect: fixed)

Opened 2 years ago

Last modified 15 months ago

Perl warnings in 'nic_updateable' function

Reported by: antespi Owned by: wimpunk
Priority: minor Milestone: 3.8
Component: ddclient Version: svn
Keywords: Cc: cpick

Description

Hi everyone,

We have detect some perl warnings in 'nic_updateable' function. Some configuration strings are not defined (because are not applied in our case).

In order to fix these warnings we introduce this work arround in 'nic_updateable' function

sub nic_updateable {
(...)
    if ($config{$host}{'login'} eq '') {
(...)
    } elsif ((defined($cache{$host}{'static'}) && defined($config{$host}{'static'}) &&
              ($cache{$host}{'static'} ne $config{$host}{'static'})) ||
             (defined($cache{$host}{'wildcard'}) && defined($config{$host}{'wildcard'}) &&
              ($cache{$host}{'wildcard'} ne $config{$host}{'wildcard'})) ||
             (defined($cache{$host}{'mx'}) && defined($config{$host}{'mx'}) &&
              ($cache{$host}{'mx'} ne $config{$host}{'mx'})) ||
             (defined($cache{$host}{'backupmx'}) && defined($config{$host}{'backupmx'}) &&
              ($cache{$host}{'backupmx'} ne $config{$host}{'backupmx'})) ) {
        info("updating %s because host settings have been changed.", $host);
        $update = 1;

Then no more warnings because :
- $cache{$host}{'static'}
- $config{$host}{'static'}
- $cache{$host}{'wildcard'}
- $config{$host}{'wildcard'}
- $cache{$host}{'mx'}
- $config{$host}{'mx'}
- $cache{$host}{'backupmx'}
- $config{$host}{'backupmx'}
are not defined.

This work-around was applied to "debian 5.0 - ddclient 3.7.3"

Please, change your svn version if you think this is correct.

Thanks in advance,
Antonio Espinosa
aespinosa at inetnova dot com

Attachments

ddclient.patch (1.2 KB) - added by cpick 17 months ago.
Patch containing fix.

Change History

Changed 2 years ago by wimpunk

  • owner set to wimpunk
  • status changed from new to assigned
  • component set to ddclient

Changed 2 years ago by wimpunk

  • owner changed from wimpunk to antespi

Could you attach a real patch to your report and assign the bug back to wimpunk.

Changed 17 months ago by cpick

Patch containing fix.

Changed 17 months ago by cpick

  • owner changed from antespi to wimpunk

This bug affected me too. antespi's fix worked for me to so I've created a patch and attached it.

Changed 17 months ago by cpick

  • cc cpick added

Changed 15 months ago by wimpunk

  • status changed from assigned to closed
  • resolution set to fixed
  • milestone set to 3.8

Patch applied in r124: Patching with nic_updateable-warning patch provided by antespi in ticket #2

Note: See TracTickets for help on using tickets.