From: Fredrik Tolf Date: Sat, 18 Oct 2008 17:25:17 +0000 (+0200) Subject: Don't try to set reqstat XAs on non-absolute pathnames. X-Git-Tag: 1.3~2 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=d337b23f90628ad50475b7ebff61a81b7343d61a;p=doldaconnect.git Don't try to set reqstat XAs on non-absolute pathnames. --- 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;