projects
/
pve-access-control.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca9761
)
Fix uninitialized warning
author
Fabian Grünbichler
<f.gruenbichler@proxmox.com>
Wed, 30 Mar 2016 10:09:12 +0000
(12:09 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 1 Apr 2016 05:10:23 +0000
(07:10 +0200)
when shadow.cfg does not exist, parsing should return an
empty hash instead of displaying a warning
PVE/Auth/PVE.pm
patch
|
blob
|
blame
|
history
diff --git
a/PVE/Auth/PVE.pm
b/PVE/Auth/PVE.pm
index 71479979eea163f47787f9d2e96fe0d869121f55..8714a6b6a5131a47ab65942c9402d9025736f20f 100755
(executable)
--- a/
PVE/Auth/PVE.pm
+++ b/
PVE/Auth/PVE.pm
@@
-19,6
+19,8
@@
sub parse_shadow_passwd {
my $shadow = {};
+ return $shadow if !defined($raw);
+
while ($raw =~ /^\s*(.+?)\s*$/gm) {
my $line = $1;