Changeset 52:2ee2ffcef24c in rrlib_util


Ignore:
Timestamp:
07.03.2012 11:22:06 (8 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Backed out changeset 1793615c41cb

  • Was better solved by proper host configuration
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sFileIOUtils.cpp

    r51 r52  
    296296{ 
    297297  //RRLIB_LOG_PRINTF(logging::eLL_USER, "sFileIOUtils::GetHostName() >>> started\n"); 
    298   std::string cmd = fqdn ? "hostname -f" : "hostname -s"; 
     298  std::string cmd = fqdn ? "hostname -f" : "hostname"; 
    299299  FILE * pipe = popen(cmd.c_str(), "r"); 
    300300  char buf[ 1024 ]; 
  • sFileIOUtils.h

    r51 r52  
    148148   * \param fqdn whether FQDN  (Fully  Qualified Domain Name) or short name shall be retrieved 
    149149   */ 
    150   static std::string GetHostName(bool fqdn = false); 
     150  static std::string GetHostName(bool fqdn = true); 
    151151 
    152152 
Note: See TracChangeset for help on using the changeset viewer.