/[pxelator]/lib/PXElator/client.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /lib/PXElator/client.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 285 by dpavlin, Tue Aug 18 14:31:56 2009 UTC revision 286 by dpavlin, Tue Aug 25 15:00:20 2009 UTC
# Line 95  sub save_ip_mac { Line 95  sub save_ip_mac {
95          mkdir ip_path($ip) unless -e ip_path($ip);          mkdir ip_path($ip) unless -e ip_path($ip);
96    
97          my $mac_path = mac_path($mac);          my $mac_path = mac_path($mac);
98          unlink $mac_path if -e $mac_path;       # XXX audit?          unlink $mac_path if -l $mac_path;       # XXX audit?
99          symlink ip_path($ip), $mac_path;          symlink ip_path($ip), $mac_path;
100          write_file ip_path($ip,'mac'), $mac;          write_file ip_path($ip,'mac'), $mac;
101  }  }

Legend:
Removed from v.285  
changed lines
  Added in v.286

  ViewVC Help
Powered by ViewVC 1.1.26