diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-09-07 09:02:47 +0200 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2011-09-08 12:08:17 +0200 |
commit | c300111189648482b505e6d04e7433ddd0f22240 (patch) | |
tree | d815adc667bba861e916dae1c91b1bc83ba11e01 /src/libimcv/tcg/pts | |
parent | 1c10fb59bf40e5fbf0101f064a911be1c32edf21 (diff) | |
download | strongswan-c300111189648482b505e6d04e7433ddd0f22240.tar.bz2 strongswan-c300111189648482b505e6d04e7433ddd0f22240.tar.xz |
use arch instead of uname -p
Diffstat (limited to 'src/libimcv/tcg/pts')
-rw-r--r-- | src/libimcv/tcg/pts/pts.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libimcv/tcg/pts/pts.c b/src/libimcv/tcg/pts/pts.c index 71acfdac6..ef5218395 100644 --- a/src/libimcv/tcg/pts/pts.c +++ b/src/libimcv/tcg/pts/pts.c @@ -401,18 +401,18 @@ static char* extract_platform_info(void) memcpy(buf, value, value_len); buf[value_len] = ' '; - /* open a pipe stream for reading the output of the uname commmand */ - file = popen("/bin/uname -p" , "r"); + /* open a pipe stream for reading the output of the arch commmand */ + file = popen("/usr/bin/arch" , "r"); if (!file) { - DBG2(DBG_IMC, "failed to run uname command"); + DBG2(DBG_IMC, "failed to run arch command"); return NULL; } - /* Read the output the uname command */ + /* Read the output the arch command */ if (!fgets(buf + value_len + 1, BUF_LEN - value_len - 2, file)) { - DBG2(DBG_IMC, "failed to read output of uname command"); + DBG2(DBG_IMC, "failed to read output of arch command"); pclose(file); return NULL; } |