Ignore:
Timestamp:
Jun 10, 2009, 7:20:29 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

password.c: $ vs : in 3.2 branch

File:
1 edited

Legend:

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

    r257 r261  
    292292                                getpwnam_alloc(vuser, vuser->user.unix_name);
    293293                        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
    294302                                vuser->unix_homedir = passwd->pw_dir;
     303                               
    295304                                /* Ensure that the unix_homedir now
    296305                                 * belongs to vuser, so it goes away
     
    347356        vuser->homes_snum = -1;
    348357       
    349 #ifdef __OS2__
    350         /* On OS/2 we use drive letters which have a colon.  This is also the
    351            field separator in master.passwd, so we use a $ instead of a colon
    352            for the drive separator, ie e$/user instead of e:/user.  This code
    353            simply exchanges any $ for a : in the user's homedir */
    354         if (vuser->unix_homedir[1] == '$')
    355                 vuser->unix_homedir[1] = ':';
    356 #endif
    357 
    358358        if ( (!vuser->guest) && vuser->unix_homedir && *(vuser->unix_homedir)) {
    359359                int servicenumber = lp_servicenumber(vuser->user.unix_name);
Note: See TracChangeset for help on using the changeset viewer.