Subject: | Uninitialized $overwrite value in copy() |
When conecting to Net::DAV::Server with Apple's 10.4 DAV client, I get
the following warning during a file copy:
Use of uninitialized value in string eq at
/Users/chris/perl/lib/Net/DAV/Server.pm line 237.
The simple fix is to change that line from:
if ($overwrite eq 'F' && $fs->test("e", $destdir)) {
to:
if ($overwrite && $overwrite eq 'F' && $fs->test("e", $destdir)) {
or to change the initialization of $overwrite to have a fallback value.
--Chris