Merge pull request #348 from bachandi/smbcounter

Fix smb counter in user.pm in case smb is not installed.
This commit is contained in:
Jordi Sanfeliu 2021-09-28 08:44:43 +02:00 committed by GitHub
commit 5a9e968144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ sub user_update {
}
}
close(IN);
$smb--;
$smb-- if $smb > 0;
open(IN, "macusers 2>/dev/null |");
@data = <IN>;