Don't try to set reqstat XAs on non-absolute pathnames.
authorFredrik Tolf <fredrik@dolda2000.com>
Sat, 18 Oct 2008 17:25:17 +0000 (19:25 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Sat, 18 Oct 2008 17:25:17 +0000 (19:25 +0200)
daemon/reqstat.c

index d3d849f..1834952 100644 (file)
@@ -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;