all repos — openbox @ 3afa20de54814b1abb447542d72c3b795892932d

openbox fork - make it a bit more like ryudo

stat() can give an error, handle that
Dana Jansens danakj@orodu.net
commit

3afa20de54814b1abb447542d72c3b795892932d

parent

34178097d559ef522ea0984091489c209f4e9e0e

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M obt/paths.cobt/paths.c

@@ -331,7 +331,8 @@ {

struct stat st; BSEARCH_SETUP(guint); - stat(path, &st); + if (stat(path, &st) != 0) + return FALSE; if (!S_ISREG(st.st_mode)) return FALSE;