Fixed issue with pdbedit in samba-lib.pl

Invalid option for pdbedit that broke due to a recent update of samba-common
This commit is contained in:
Martel
2023-04-25 17:42:14 -07:00
committed by GitHub
parent 3f322bee84
commit 12e6b19586

View File

@@ -646,7 +646,7 @@ if ($has_pdbedit) {
local $out = &backquote_logged(
"cd / && $config{'pdbedit'} -a -s $config{'smb_conf'} -t -u ".
quotemeta($user->{'name'}).
($config{'sync_gid'} ? " -G $config{'sync_gid'}" : "").
($config{'sync_gid'} ? " -g $config{'sync_gid'}" : "").
" -c '[".join("", @opts)."]' $ws <$temp 2>&1");
$? && &error("$config{'pdbedit'} failed : <pre>$out</pre>");
}