From d337b23f90628ad50475b7ebff61a81b7343d61a Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Sat, 18 Oct 2008 19:25:17 +0200 Subject: [PATCH] Don't try to set reqstat XAs on non-absolute pathnames. --- daemon/reqstat.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/reqstat.c b/daemon/reqstat.c index d3d849f..1834952 100644 --- a/daemon/reqstat.c +++ b/daemon/reqstat.c @@ -73,6 +73,8 @@ void xainc(wchar_t *file, char *an, off_t inc) off_t val; char *fn; + if(file[0] != L'/') + return; if((fn = icswcstombs(file, NULL, NULL)) == NULL) { flog(LOG_WARNING, "could not convert filename %ls into local charset: %s", file, strerror(errno)); return; -- 2.11.0