DragonFly BSD
DragonFly commits List (threaded) for 2010-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: linux emu - support O_DIRECTORY for open syscall


From: Alex Hornung <alexh@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 9 Apr 2010 00:45:36 -0700 (PDT)

commit 9ea7e8bc214c6e4b865b9b70b34fb1f9e14ceae4
Author: Alex Hornung <ahornung@gmail.com>
Date:   Fri Apr 9 06:49:06 2010 +0000

    linux emu - support O_DIRECTORY for open syscall
    
    * Linux opendir seems to rely on O_DIRECTORY to avoid certain race
      conditions, so introduce O_DIRECTORY support which just returns
      ENOTDIR even if the open is successful, if the opened path is not a
      directory.
    
    * This fixes Ant's directory scanner.
    
    Submitted-by: Johannes Hofmann

Summary of changes:
 sys/emulation/linux/i386/linux.h |    1 +
 sys/emulation/linux/linux_file.c |   17 +++++++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9ea7e8bc214c6e4b865b9b70b34fb1f9e14ceae4


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]