--- intercept.c.orig Fri Jun 15 21:27:56 2007 +++ intercept.c Sat Nov 3 11:56:23 2007 @@ -655,6 +655,9 @@ char *base = basename(cwd); int failed = 0; + if (base == NULL) + return (NULL); + /* The dot maybe used by rmdir("/tmp/something/.") */ if (strcmp(base, ".") == 0) goto nolast;