diff options
author | Tim Potter <tpot@samba.org> | 2002-07-21 04:55:11 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-07-21 04:55:11 +0000 |
commit | c0f66c1786cfbbff416a59b38930788cbe86f686 (patch) | |
tree | 5439431e14772101eaf4289ceacaeab00bb682fa /source3/passdb/pdb_nisplus.c | |
parent | ceb73e9b3e6695a8efc4c2815fa1448be3239dbc (diff) | |
download | samba-c0f66c1786cfbbff416a59b38930788cbe86f686.tar.gz samba-c0f66c1786cfbbff416a59b38930788cbe86f686.tar.bz2 samba-c0f66c1786cfbbff416a59b38930788cbe86f686.zip |
Name get and set dir drive functions consistently.
(This used to be commit 290a304d2c1b70d20129236e20a0ff664179023e)
Diffstat (limited to 'source3/passdb/pdb_nisplus.c')
-rw-r--r-- | source3/passdb/pdb_nisplus.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/passdb/pdb_nisplus.c b/source3/passdb/pdb_nisplus.c index 9c5b2e1171..d6c0bcb672 100644 --- a/source3/passdb/pdb_nisplus.c +++ b/source3/passdb/pdb_nisplus.c @@ -735,17 +735,17 @@ static BOOL init_nisp_from_sam(nis_object *obj, const SAM_ACCOUNT *sampass, /* dir_drive */ /* must support set, unset and change */ - if( (pdb_get_dirdrive(sampass) && + if( (pdb_get_dir_drive(sampass) && !ENTRY_VAL(old, NPF_DIR_DRIVE)) || (ENTRY_VAL(old, NPF_DIR_DRIVE) && - !pdb_get_dirdrive(sampass)) || + !pdb_get_dir_drive(sampass)) || (ENTRY_VAL(old, NPF_DIR_DRIVE) && - pdb_get_dirdrive(sampass) && + pdb_get_dir_drive(sampass) && strcmp( ENTRY_VAL(old, NPF_DIR_DRIVE), - pdb_get_dirdrive(sampass)))) { + pdb_get_dir_drive(sampass)))) { need_to_modify = True; - set_single_attribute(obj, NPF_DIR_DRIVE, pdb_get_dirdrive(sampass), - strlen(pdb_get_dirdrive(sampass)), EN_MODIFIED); + set_single_attribute(obj, NPF_DIR_DRIVE, pdb_get_dir_drive(sampass), + strlen(pdb_get_dir_drive(sampass)), EN_MODIFIED); } /* logon_script */ @@ -860,7 +860,7 @@ static BOOL init_nisp_from_sam(nis_object *obj, const SAM_ACCOUNT *sampass, set_single_attribute(obj, NPF_HOME_DIR, homedir, strlen(homedir), 0); - if(!(dirdrive = pdb_get_dirdrive(sampass))) + if(!(dirdrive = pdb_get_dir_drive(sampass))) dirdrive = empty; set_single_attribute(obj, NPF_DIR_DRIVE, |