cvs commit: src/sys/compat/linux linux_file.c

Roman Divacky rdivacky at
Wed Apr 9 16:42:51 UTC 2008

rdivacky    2008-04-09 16:42:50 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_file.c 
  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)
  Revision  Changes    Path
  1.112     +3 -5      src/sys/compat/linux/linux_file.c

More information about the cvs-all mailing list