]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xinstall: plug an infinite loop in directory creation
authormjg <mjg@FreeBSD.org>
Thu, 12 Oct 2017 13:59:23 +0000 (13:59 +0000)
committermjg <mjg@FreeBSD.org>
Thu, 12 Oct 2017 13:59:23 +0000 (13:59 +0000)
commit7c9141d948d03dcbee9c3c4f7dd77ece8bf4bd7b
tree92fc0404e18637d8b1a41d52064c78279de1b925
parent851d0b97abbb69fc2df212b9a1004b9eb8cb5c43
xinstall: plug an infinite loop in directory creation

If stat continues to fail with ENOENT and mkdir with EEXIST the code wont
finish. In particular this can show up when the target path follows through
a symlink to a non-existent directory.

Reported by: ae
MFC after: 1 week
usr.bin/xinstall/xinstall.c