}
int
-testopendir(char *path)
+canopendir(char *path)
{
DIR *dirp;
/* There is no going back */
if (strcmp(path, "/") == 0)
goto nochange;
- if (testopendir(path) == 0) {
+ if (canopendir(path) == 0) {
printwarn();
goto nochange;
}
switch (sb.st_mode & S_IFMT) {
case S_IFDIR:
- if (testopendir(path) == 0) {
+ if (canopendir(path) == 0) {
printwarn();
goto nochange;
}
clearprompt();
goto nochange;
}
- if (testopendir(tmp) == 0) {
+ if (canopendir(tmp) == 0) {
printwarn();
goto nochange;
}
}
/* Test initial path */
- if (testopendir(ipath) == 0)
+ if (canopendir(ipath) == 0)
printerr(1, ipath);
/* Set locale before curses setup */