clib/mktemp.c & shell/If: Fix checking for existing file.
commit19d080c99ac65962ef07f44b2d1e79c77caa179c
authorverhaegs <verhaegs@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 21 Jul 2013 09:50:55 +0000 (21 09:50 +0000)
committerverhaegs <verhaegs@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sun, 21 Jul 2013 09:50:55 +0000 (21 09:50 +0000)
tree8472b80cda2843bf301e699cd96cbe0954311c9e
parenta191bd3b6fe6a7c1e0ae087e2af6706ca8550b86
clib/mktemp.c & shell/If: Fix checking for existing file.

Lock() may return BNULL with IoErr() == ERROR_OBJECT_IN_USE when file
exists but has exclusive lock.
Don't know if this is analog to classic OS behaviour.
This fixes Tests/clib/tmpfile

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@47746 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
compiler/clib/mktemp.c
workbench/c/shellcommands/If.c