From 5d8dfa4764679834aa70df95ef2f90bfeecf99b1 Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Sat, 25 Aug 2012 10:28:04 +0100 Subject: [PATCH] Fixed invalid argument to popen in readMenuPipe(). We were passing "rb" to popen(), which was failing with EINVAL with the result that generated menus were not displayed. --- src/rootmenu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rootmenu.c b/src/rootmenu.c index addb23ee..2fcd0ae9 100644 --- a/src/rootmenu.c +++ b/src/rootmenu.c @@ -998,7 +998,7 @@ static WMenu *readMenuPipe(WScreen * scr, char **file_name) } filename = flat_file + (flat_file[1] == '|' ? 2 : 1); - file = popen(filename, "rb"); + file = popen(filename, "r"); if (!file) { werror(_("%s:could not open menu file"), filename); return NULL;