Remove PC_FULL from path_conv usage throughout.

* path.h (enum pathconv_arg): Change PC_FULL to PC_NOUILL.
* path.cc (path_conv::check): Test for PC_NOFULL rather than !PC_FULL.
(cygwin_conv_to_win32_path): Use PC_NOFULL to force non-absolute path.
This commit is contained in:
Christopher Faylor
2005-05-13 15:46:07 +00:00
parent eb6cd95fec
commit 063f1df2aa
10 changed files with 34 additions and 28 deletions

View File

@@ -45,7 +45,7 @@ opendir (const char *name)
fhandler_base *fh;
DIR *res;
fh = build_fh_name (name, NULL, PC_SYM_FOLLOW | PC_FULL);
fh = build_fh_name (name, NULL, PC_SYM_FOLLOW);
if (!fh)
res = NULL;
else if (fh->exists ())
@@ -264,7 +264,7 @@ rmdir (const char *dir)
{
int res = -1;
path_conv real_dir (dir, PC_SYM_NOFOLLOW | PC_FULL | PC_WRITABLE);
path_conv real_dir (dir, PC_SYM_NOFOLLOW | PC_WRITABLE);
if (real_dir.error)
set_errno (real_dir.error);