Branch: Tag:

2012-07-16

2012-07-16 03:58:46 by Bill Welliver <bill@welliver.org>

System.get_user(): System.getuid is not a constant?

16: Inside #if constant(System.GetUserName)
  {   #if constant(System.GetUserName)    return System.GetUserName(); - #elseif constant(System.getuid) -  return [string]getpwuid(System.getuid())[0]; + #elseif constant(getuid) +  return [string]getpwuid(getuid())[0];   #else    return "UNKNOWN"; - #endif /* System.GetUserName */ + #endif   }      //! Get the full path for the current user's home directory