Changeset 872 for trunk/src/core


Ignore:
Timestamp:
Feb 8, 2008 2:01:38 PM (16 years ago)
Author:
dkearney
Message:

mainly code cleanups that i've made and stored in my repository over time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpLibrary.cc

    r857 r872  
    22422242        if (user != NULL) {
    22432243            username = std::string(user);
    2244         }
    2245         host = getenv("HOST");
    2246         if (host != NULL) {
    2247             hostname = std::string(host);
     2244        } else {
     2245            user = getenv("LOGNAME");
     2246            if (user != NULL) {
     2247                username = std::string(user);
     2248            }
    22482249        }
    22492250#endif
Note: See TracChangeset for help on using the changeset viewer.