while compiling 3.0.9: Compiling utils/smbpasswd.c cc-1552 cc: WARNING File = utils/smbpasswd.c, Line = 432 The variable "ret" is set but never used. BOOL ret; ^ Looking at the code and surrounding code, if(local_flags & LOCAL_ENABLE_USER) { SAM_ACCOUNT *sampass = NULL; BOOL ret; pdb_init_sam(&sampass); ret = pdb_getsampwnam(sampass, user_name); if((sampass != False) && (pdb_get_lanman_passwd(sampass) == NULL)) { local_flags |= LOCAL_SET_PASSWORD; } pdb_free_sam(&sampass); } it looks like me like the IF statement should instead be: if((ret != False) && (pdb_get_lanman_passwd(sampass) == NULL))
Obviously correct. Applied, thanks! Volker
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.