Changeset 454

Show
Ignore:
Timestamp:
03/30/06 02:30:20 (3 years ago)
Author:
common
Message:

Nepenthes.cpp
- add recognition for numeric user and group (as my freebsd does not map these values for nfs accounts)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/src/Nepenthes.cpp

    r376 r454  
    11871187{ 
    11881188        passwd * pass;                                 
    1189      
     1189 
     1190        if (isdigit(*user) != 0) 
     1191        { 
     1192        m_UID = atoi(user); 
     1193                printf("User %s has uid %i\n",user,m_UID); 
     1194                return true; 
     1195        }else 
    11901196        if ( (pass = getpwnam(user)) == NULL ) 
    11911197        { 
     
    12721278        struct group *grp; 
    12731279 
     1280        if (isdigit(*gruppe) != 0) 
     1281        { 
     1282                m_GID = atoi(gruppe); 
     1283                printf("Group %s has gid %i\n",gruppe,m_GID); 
     1284                return true; 
     1285        }else 
    12741286        if ( (grp = getgrnam(gruppe)) == NULL ) 
    12751287        {