##// END OF EJS Templates
posix: fix test-permissions regression
Matt Mackall -
r26889:1aa5083c 3.6.1 stable
parent child Browse files
Show More
@@ -182,14 +182,16 b' def checklink(path):'
182 # link creation might race, try again
182 # link creation might race, try again
183 if inst[0] == errno.EEXIST:
183 if inst[0] == errno.EEXIST:
184 continue
184 continue
185 # sshfs might report failure while successfully creating the link
185 raise
186 if inst[0] == errno.EIO and os.path.exists(name):
187 os.unlink(name)
188 return False
189 finally:
186 finally:
190 fd.close()
187 fd.close()
191 except AttributeError:
188 except AttributeError:
192 return False
189 return False
190 except OSError as inst:
191 # sshfs might report failure while successfully creating the link
192 if inst[0] == errno.EIO and os.path.exists(name):
193 os.unlink(name)
194 return False
193
195
194 def checkosfilename(path):
196 def checkosfilename(path):
195 '''Check that the base-relative path is a valid filename on this platform.
197 '''Check that the base-relative path is a valid filename on this platform.
General Comments 0
You need to be logged in to leave comments. Login now