[pve-devel] applied: [PATCH access-control] ldap_delete_credentials: don't complain if already deleted
Thomas Lamprecht
t.lamprecht at proxmox.com
Fri May 8 10:28:15 CEST 2020
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
it's just for style, a realm was deleted nonetheless
PVE/Auth/LDAP.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/PVE/Auth/LDAP.pm b/PVE/Auth/LDAP.pm
index 64250cb..9fa9095 100755
--- a/PVE/Auth/LDAP.pm
+++ b/PVE/Auth/LDAP.pm
@@ -411,6 +411,7 @@ sub ldap_delete_credentials {
my ($realmid) = @_;
if (my $cred_file = get_cred_file($realmid)) {
+ return if ! -e $cred_file; # nothing to do
unlink($cred_file) or warn "removing LDAP credentials '$cred_file' failed: $!\n";
}
}
--
2.20.1
More information about the pve-devel
mailing list