]> git.proxmox.com Git - pve-common.git/commitdiff
avoid Exporter warning
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 9 Sep 2015 07:10:15 +0000 (09:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 9 Sep 2015 07:10:15 +0000 (09:10 +0200)
Else we get the following warning:

Subroutine PVE::ProcFSTools::getcwd redefined at /usr/share/perl/5.20/Exporter.pm line 66.
 at /usr/share/perl5/PVE/ProcFSTools.pm line 9.

src/PVE/ProcFSTools.pm

index 368ae73a1674b93018d1df9505604c7746f07811..3dc5680df69aa7b4d96a4c49a95a1aa01d571efd 100644 (file)
@@ -6,7 +6,7 @@ use POSIX;
 use Time::HiRes qw (gettimeofday);
 use IO::File;
 use PVE::Tools;
-use Cwd;
+use Cwd qw();
 
 my $clock_ticks = POSIX::sysconf(&POSIX::_SC_CLK_TCK);