Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Apr 2008 16:42:50 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/compat/linux linux_file.c
Message-ID:  <200804091642.m39GgohM052944@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rdivacky    2008-04-09 16:42:50 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linux     linux_file.c 
  Log:
  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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804091642.m39GgohM052944>