From ab31428bd3cea56a3fc2061b0b0ebf357e70594e Mon Sep 17 00:00:00 2001 From: Jeff Squyres Date: Fri, 17 Jan 2014 14:28:12 +0000 Subject: [PATCH] opal_path_nfs(): If we get EPERM, just give up. Also fix the wording in a comment. This is worth fixing, but not worth holding up 1.7.4. cmr=v1.7.5:reviewer=rhc This commit was SVN r30307. --- opal/util/path.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/opal/util/path.c b/opal/util/path.c index 26c4f7e774..9c11fe2ea9 100644 --- a/opal/util/path.c +++ b/opal/util/path.c @@ -499,12 +499,17 @@ again: } while (-1 == vfsrc && ESTALE == errno && (0 < --trials)); #endif - /* In case some error with the current filename, try the directory */ + /* In case some error with the current filename, try the parent + directory */ if (-1 == fsrc && -1 == vfsrc) { char * last_sep; OPAL_OUTPUT_VERBOSE((10, 0, "opal_path_nfs: stat(v)fs on file:%s failed errno:%d directory:%s\n", fname, errno, file)); + if (EPERM == errno) { + free(file); + return false; + } last_sep = strrchr(file, OPAL_PATH_SEP[0]); /* Stop the search, when we have searched past root '/' */