]> git.proxmox.com Git - pve-common.git/commitdiff
avoid warning if file does not exist
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Jul 2013 08:18:27 +0000 (10:18 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 25 Jul 2013 08:18:27 +0000 (10:18 +0200)
data/PVE/INotify.pm

index f18a10bb9a3533555e0b1389e1bedf2f818a019c..c6a736d75d428eb7d3611eeb08bde70a8d675712 100644 (file)
@@ -978,7 +978,7 @@ sub read_apt_auth {
 
     local $/;
 
 
     local $/;
 
-    my $raw = <$fd>;
+    my $raw = defined($fd) ? <$fd> : '';
 
     $raw =~ s/^\s+//;
 
 
     $raw =~ s/^\s+//;