diff options
author | Christopher Faylor <me@cgf.cx> | 2001-10-05 00:17:57 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-10-05 00:17:57 +0000 |
commit | 32fb80db07f9406e50fca623e9888015e96ccd75 (patch) | |
tree | dbd8673a0e37aa156da7c1ac8aa55d45f72d66df /winsup/cygwin/dir.cc | |
parent | 8af0f81d522b3143ad6fcd5504e4b2ccc7c5b856 (diff) | |
download | cygnal-32fb80db07f9406e50fca623e9888015e96ccd75.tar.gz cygnal-32fb80db07f9406e50fca623e9888015e96ccd75.tar.bz2 cygnal-32fb80db07f9406e50fca623e9888015e96ccd75.zip |
* syscalls.cc (stat_worker): Make global. Accept path_conv parameter for
passing information back to caller.
* winsup.h: Declare stat_worker.
* dir.cc (opendir): Use stat_worker rather than stat and pass path_conv
parameter to stat_worker for later inspection.
* syslog.cc (syslog): Teach syslog about syslog priorities other than LOG_ERR,
LOG_WARNING and LOG_INFO
* path.cc (path_conv::check): Don't perform file system or rootdir checks on
devices.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r-- | winsup/cygwin/dir.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index 079c5c4fe..39ec9e9d9 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -83,15 +83,9 @@ opendir (const char *dirname) DIR *res = 0; struct stat statbuf; - path_conv real_dirname (dirname, PC_SYM_FOLLOW | PC_FULL); + path_conv real_dirname; - if (real_dirname.error) - { - set_errno (real_dirname.error); - goto failed; - } - - if (stat (real_dirname, &statbuf) == -1) + if (stat_worker (dirname, &statbuf, 1, &real_dirname) == -1) goto failed; if (!(statbuf.st_mode & S_IFDIR)) |