mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
make uname() more likely to work on solaris
(linux says 0 is success, solaris says 1 is success) svn:r1322
This commit is contained in:
parent
49a221500d
commit
d10fcc89ec
@ -989,7 +989,8 @@ get_uname(void)
|
||||
#endif
|
||||
if (!uname_result_is_set) {
|
||||
#ifdef HAVE_UNAME
|
||||
if (!uname((&u))) {
|
||||
if (uname(&u) != -1) {
|
||||
/* (linux says 0 is success, solaris says 1 is success) */
|
||||
snprintf(uname_result, 255, "%s %s %s",
|
||||
u.sysname, u.nodename, u.machine);
|
||||
uname_result[255] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user