Changeset 118


Ignore:
Timestamp:
Feb 4, 2008, 11:14:58 AM (18 years ago)
Author:
Paul Smedley
Message:

Fix for ticket #42 - use $ instead of : to support drive letters for home dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/smbd/password.c

    r1 r118  
    247247                        const char *unix_homedir =
    248248                                pdb_get_unix_homedir(server_info->sam_account);
     249
    249250                        if (unix_homedir) {
    250251                                vuser->unix_homedir =
     
    322323
    323324        vuser->homes_snum = -1;
     325
     326#ifdef __OS2__
     327                        /* On OS/2 we use drive letters which have a colon.  This is also the field
     328                           separator in master.passwd, so we use a $ instead of a colon for the drive
     329                           separator, ie e$/user instead of e:/user.  This code simply exchanges any $
     330                           for a : in the user's homedir */
     331                        if (vuser->unix_homedir[1] == '$')
     332                                        vuser->unix_homedir[1] = ':';
     333#endif
     334
    324335
    325336        if ( (!vuser->guest) && vuser->unix_homedir && *(vuser->unix_homedir))
Note: See TracChangeset for help on using the changeset viewer.