PathV2: Fix a possible infinite loop.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 15 Nov 2012 20:24:52 +0000 (20:24 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 15 Nov 2012 20:24:52 +0000 (20:24 +0000)
commit71e5ea88604161e2e1effe20486ab3bcb363645f
tree977ddde55ffab164ba41f2f73cbccbc711ebda41
parentc984657c7461ce28b25ca91fdc6caaf2860127fd
PathV2: Fix a possible infinite loop.

 - The code could infinite loop trying to create unique files, if the directory
   containing the unique file exists, but open() calls on non-existent files in
   the path return ENOENT. This is true on the /dev/fd filesystem, for example.

 - Will add a clang side test case for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168081 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Unix/PathV2.inc