Changeset 261 for branches/samba-3.2.x/source/smbd/password.c
- Timestamp:
- Jun 10, 2009, 7:20:29 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/source/smbd/password.c
r257 r261 292 292 getpwnam_alloc(vuser, vuser->user.unix_name); 293 293 if (passwd) { 294 #ifdef __OS2__ 295 /* On OS/2 we use drive letters which have a colon. This is also the field 296 separator in master.passwd, so we use a $ instead of a colon for the drive 297 separator, ie e$/user instead of e:/user. This code simply exchanges any $ 298 for a : in the user's homedir */ 299 if (passwd->pw_dir[1] == '$') 300 passwd->pw_dir[1] = ':'; 301 #endif 294 302 vuser->unix_homedir = passwd->pw_dir; 303 295 304 /* Ensure that the unix_homedir now 296 305 * belongs to vuser, so it goes away … … 347 356 vuser->homes_snum = -1; 348 357 349 #ifdef __OS2__350 /* On OS/2 we use drive letters which have a colon. This is also the351 field separator in master.passwd, so we use a $ instead of a colon352 for the drive separator, ie e$/user instead of e:/user. This code353 simply exchanges any $ for a : in the user's homedir */354 if (vuser->unix_homedir[1] == '$')355 vuser->unix_homedir[1] = ':';356 #endif357 358 358 if ( (!vuser->guest) && vuser->unix_homedir && *(vuser->unix_homedir)) { 359 359 int servicenumber = lp_servicenumber(vuser->user.unix_name);
Note:
See TracChangeset
for help on using the changeset viewer.