Author: marek Date: 2010-05-26 16:10:57 +0200 (Wed, 26 May 2010) New Revision: 1680
Modified: trunk/batctl/sys.c Log: batctl: fix regression - don't show unused interfaces
Due to the sysfs single value conversion "batctl if" would show even unused interfaces and their status.
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
Modified: trunk/batctl/sys.c =================================================================== --- trunk/batctl/sys.c 2010-05-22 07:32:41 UTC (rev 1679) +++ trunk/batctl/sys.c 2010-05-26 14:10:57 UTC (rev 1680) @@ -86,7 +86,7 @@ if (line_ptr[strlen(line_ptr) - 1] == '\n') line_ptr[strlen(line_ptr) - 1] = '\0';
- if (strcmp(line_ptr, "status: none") == 0) + if (strcmp(line_ptr, "none") == 0) goto free_line;
free(line_ptr);