/* Change a port cell to a directory in an open file descriptor.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
ret = HURD_PORT_USE (&d->port,
({
int ret;
+ /* We look up "." to force ENOTDIR if it's not a
+ directory and EACCES if we don't have search
+ permission. */
file_t dir = __file_name_lookup_under (port, ".",
- 0, 0);
+ O_NOTRANS, 0);
if (dir == MACH_PORT_NULL)
ret = -1;
else