+ (void) stat(cat, &sbuf);
+ }
+ if (access(cat, R_OK|W_OK|X_OK) == -1) {
+ sprintf(buf, "catman: %s", cat);
+ perror(buf);
+ exstat = 1;
+ continue;
+ }
+ if ((sbuf.st_mode & S_IFMT) != S_IFDIR) {
+ fprintf(stderr, "catman: %s: Not a directory\n", cat);
+ exstat = 1;
+ continue;