From 13f8356acaa8b9e7058198c1b679750c5e55d370 Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 8 Sep 2011 18:29:52 +0200 Subject: [PATCH] redirect stderr of command to /dev/null --- src/libpts/pts/pts.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libpts/pts/pts.c b/src/libpts/pts/pts.c index c9df3f35a..d1e6b594c 100644 --- a/src/libpts/pts/pts.c +++ b/src/libpts/pts/pts.c @@ -365,10 +365,10 @@ static char* extract_platform_info(void) int value_len; /* open a pipe stream for reading the output of the lsb_release commmand */ - file = popen("/usr/bin/lsb_release -d" , "r"); + file = popen("/usr/bin/lsb_release -d 2> /dev/null" , "r"); if (!file) { - DBG2(DBG_IMC, "failed to run lsb_release command"); + DBG2(DBG_IMC, "popen failed for lsb_release command"); return NULL; } @@ -401,10 +401,10 @@ static char* extract_platform_info(void) buf[value_len] = ' '; /* open a pipe stream for reading the output of the arch commmand */ - file = popen("/usr/bin/arch" , "r"); + file = popen("/usr/bin/arch 2> /dev/null" , "r"); if (!file) { - DBG2(DBG_IMC, "failed to run arch command"); + DBG2(DBG_IMC, "popen failed for arch command"); return NULL; }