]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Remove using magic value of -1 to distinguish between linux_open()
authorrdivacky <rdivacky@FreeBSD.org>
Wed, 9 Apr 2008 16:42:50 +0000 (16:42 +0000)
committerrdivacky <rdivacky@FreeBSD.org>
Wed, 9 Apr 2008 16:42:50 +0000 (16:42 +0000)
commit69ec9a439cda4fb79f94985315b7a90845c0c8c4
tree553c83392169c6b4a3b85f225a2b50f14807b9d2
parent59c9f770cb8293ea8f2c4072435f8a90b2070bdb
Remove using magic value of -1 to distinguish between linux_open()
and linux_openat(). Instead just pass AT_FDCWD into linux_common_open()
for the linux_open() case. This prevents passing -1 as a dirfd to
openat() from succeeding which is wrong.

Suggested by: rwatson, kib
Approved by: kib (mentor)
sys/compat/linux/linux_file.c