Reported by Joonas Kuorilehto <joneskoo@codenomicon.com> -------------------------------------------------------- # echo test | /opt/superdemo/samba/bin/smbpasswd -a test New SMB password: Retype new SMB password:Segmentation fault Oops, I accidently the smbpasswd. -------------------------------------------------------- The underlying issue is that some of the getpass functions return NULL on error, some return "". Patch to make this consistent to follow. Jeremy.
Created attachment 9524 [details] git-am fix for master and 4.1.x. Once it's gone into master I'll upload the back-port for 4.0.next.
Created attachment 9531 [details] git-am fix for 4.1.next, 4.0.next. git fix containing cherry-pick info from master.
Karo, please pick for 4.0 and 4.1 Thanks!
Pushed to autobuild-v4-0-test. Patch does not apply to current v4-1-test (80c09fc1cd5a): user@host:/data/git/samba/v4-1-test$ git am 0001-s3-smbpasswd-fix-crashes-on-invalid-input.patch Applying: s3: smbpasswd - fix crashes on invalid input. error: patch failed: source3/utils/passwd_util.c:61 error: source3/utils/passwd_util.c: patch does not apply Patch failed at 0001 s3: smbpasswd - fix crashes on invalid input.
Re-assigning to Jeremy.
Hmm - doing the cherry-pick directly from master works. Can you do: ~/src/samba/git/samba-4-0-test$ git fetch ../master/ master ~/src/samba/git/samba-4-0-test$ git cherry-pick -x ef5a3bedab74420baf0c653cf8e304fe6c2a13b4 instead ? Jeremy.
Created attachment 9603 [details] git-am fix for 4.1.x Here is the same patch as applied cleanly to 4.0.x patched with patch -p1 <file and then re-committed as a git-am fix. Re-assigning to Karolin for inclusion in 4.1.next.
Pushed to autobuild-v4-1-test
Pushed to v4-1-test. Closing out bug report. Thanks!