From 12e6b195864add917a44cc94df49642a8bec5488 Mon Sep 17 00:00:00 2001 From: Martel <126117735+martelrotschy@users.noreply.github.com> Date: Tue, 25 Apr 2023 17:42:14 -0700 Subject: [PATCH] Fixed issue with pdbedit in samba-lib.pl Invalid option for pdbedit that broke due to a recent update of samba-common --- samba/samba-lib.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samba/samba-lib.pl b/samba/samba-lib.pl index 46858602a..873f392a8 100755 --- a/samba/samba-lib.pl +++ b/samba/samba-lib.pl @@ -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 :
$out"); }