Ignore:
Timestamp:
May 27, 2009, 9:09:42 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/utils/smbpasswd.c

    r133 r232  
    431431               
    432432                if((local_flags & LOCAL_SET_PASSWORD) && (new_passwd == NULL)) {
     433                        struct passwd *passwd = getpwnam_alloc(NULL, user_name);
     434
     435                        if (!passwd) {
     436                                fprintf(stderr, "Cannot locate Unix account for "
     437                                        "'%s'!\n", user_name);
     438                                exit(1);
     439                        }
     440                        TALLOC_FREE(passwd);
     441
    433442                        new_passwd = prompt_for_new_password(stdin_passwd_get);
    434443                       
Note: See TracChangeset for help on using the changeset viewer.