Ticket #12962: smbpasswd_fix_nonuser_segfault.patch

File smbpasswd_fix_nonuser_segfault.patch, 534 bytes (added by НКВД, 5 years ago)

Fix segfault when trying to add a non-existant user

  • package/network/services/samba36/patches/111-owrt_smbpasswd.patch

     
    113113+       } 
    114114+ 
    115115+       if (!find_passwd_line(fp, user, &p1)) { 
    116 +               printf("User %s not found or invalid in /etc/passwd\n"); 
     116+               printf("User %s not found or invalid in /etc/passwd\n", user); 
    117117+               goto out; 
    118118+       } 
    119119+