- NW->SpoolFileName = NewStrBufPlain(ctdl_netout_dir, -1);
- StrBufAppendBufPlain(NW->SpoolFileName, HKEY("/"), 0);
- StrBufAppendBuf(NW->SpoolFileName, NW->node, 0);
- if (access(ChrPtr(NW->SpoolFileName), R_OK) == 0) {
+ StrBufAppendBufPlain(SpoolFileName, HKEY("/"), 0);
+ StrBufAppendBuf(SpoolFileName, NW->node, 0);
+ StrBufStripSlashes(SpoolFileName, 1);
+
+ if (access(ChrPtr(SpoolFileName), R_OK) == 0) {