If lock is a FileHandle we must convert it into a FileLock because
commit502adbb14f5bac73d12df86b3716b5cc215c42fb
authormazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 14 Apr 2012 16:18:28 +0000 (14 16:18 +0000)
committermazze <mazze@fb15a70f-31f2-0310-bbcc-cdcc74a49acc>
Sat, 14 Apr 2012 16:18:28 +0000 (14 16:18 +0000)
tree807a4bf2bdbb5dc7ca1695bafcae77beca03f66a
parent5f35f279457881aced74b705086b698608886317
If lock is a FileHandle we must convert it into a FileLock because
__fill_statbuffer() calls Info() which needs a FileLock.
This fixes a crash in the fstat() call in the ABCM2PS application.

Problem is that DupLockFromFH() works only with shared FileHandles.
How can we get a lock from an exclusive FileHandle?

git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44628 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
compiler/clib/__stat.c