- && (statb.st_mode & S_IFMT) == S_IFDIR
- && docd(p, strcmp(p, dest)) >= 0)
- return 0;
+ && (statb.st_mode & S_IFMT) == S_IFDIR) {
+ if (!print) {
+ /*
+ * XXX - rethink
+ */
+ if (p[0] == '.' && p[1] == '/')
+ p += 2;
+ print = strcmp(p, dest);
+ }
+ if (docd(p, print) >= 0)
+ return 0;
+
+ }