mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-13 22:37:55 +00:00
Fix uninitialized warning
when shadow.cfg does not exist, parsing should return an empty hash instead of displaying a warning
This commit is contained in:
parent
cca9761a20
commit
8978ab373c
@ -19,6 +19,8 @@ sub parse_shadow_passwd {
|
|||||||
|
|
||||||
my $shadow = {};
|
my $shadow = {};
|
||||||
|
|
||||||
|
return $shadow if !defined($raw);
|
||||||
|
|
||||||
while ($raw =~ /^\s*(.+?)\s*$/gm) {
|
while ($raw =~ /^\s*(.+?)\s*$/gm) {
|
||||||
my $line = $1;
|
my $line = $1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user