projects
/
pxelator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9154fb9
)
-e doesn't return true for symlinks, so -l is right thing
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 25 Aug 2009 15:00:20 +0000
(15:00 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 25 Aug 2009 15:00:20 +0000
(15:00 +0000)
lib/PXElator/client.pm
patch
|
blob
|
history
diff --git
a/lib/PXElator/client.pm
b/lib/PXElator/client.pm
index
f170107
..
7f268d3
100644
(file)
--- a/
lib/PXElator/client.pm
+++ b/
lib/PXElator/client.pm
@@
-95,7
+95,7
@@
sub save_ip_mac {
mkdir ip_path($ip) unless -e ip_path($ip);
my $mac_path = mac_path($mac);
- unlink $mac_path if -
e
$mac_path; # XXX audit?
+ unlink $mac_path if -
l
$mac_path; # XXX audit?
symlink ip_path($ip), $mac_path;
write_file ip_path($ip,'mac'), $mac;
}