noice.c | 10 +++++----- diff --git a/noice.c b/noice.c index 9a9fc6a4e477f5647f9fdeaf9a52faa0cfac3945..89db4bd00af9e8331c9db0e9d90eca5b02ea5153 100644 --- a/noice.c +++ b/noice.c @@ -396,7 +396,7 @@ return ln; } int -testopendir(char *path) +canopendir(char *path) { DIR *dirp; @@ -615,7 +615,7 @@ case SEL_BACK: /* There is no going back */ if (strcmp(path, "/") == 0) goto nochange; - if (testopendir(path) == 0) { + if (canopendir(path) == 0) { printwarn(); goto nochange; } @@ -646,7 +646,7 @@ DPRINTF_U(sb.st_mode); switch (sb.st_mode & S_IFMT) { case S_IFDIR: - if (testopendir(path) == 0) { + if (canopendir(path) == 0) { printwarn(); goto nochange; } @@ -705,7 +705,7 @@ if (tmp == NULL) { clearprompt(); goto nochange; } - if (testopendir(tmp) == 0) { + if (canopendir(tmp) == 0) { printwarn(); goto nochange; } @@ -753,7 +753,7 @@ ipath = "/"; } /* Test initial path */ - if (testopendir(ipath) == 0) + if (canopendir(ipath) == 0) printerr(1, ipath); /* Set locale before curses setup */