summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_disk_file.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-13 15:46:07 +0000
committerChristopher Faylor <me@cgf.cx>2005-05-13 15:46:07 +0000
commit063f1df2aa2689d45fd7fd7bd8445031338ec9cb (patch)
treed1dc01f28241869f35ad8c728ccaae9e0732d3c5 /winsup/cygwin/fhandler_disk_file.cc
parenteb6cd95fecef02c261ef266161f8dff6924efa4d (diff)
downloadcygnal-063f1df2aa2689d45fd7fd7bd8445031338ec9cb.tar.gz
cygnal-063f1df2aa2689d45fd7fd7bd8445031338ec9cb.tar.bz2
cygnal-063f1df2aa2689d45fd7fd7bd8445031338ec9cb.zip
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.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index 65fbb8320..ff14a053a 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -681,7 +681,7 @@ fhandler_disk_file::ftruncate (_off64_t length)
int
fhandler_disk_file::link (const char *newpath)
{
- path_conv newpc (newpath, PC_SYM_NOFOLLOW | PC_FULL | PC_POSIX);
+ path_conv newpc (newpath, PC_SYM_NOFOLLOW | PC_POSIX);
extern bool allow_winsymlinks;
if (newpc.error)
@@ -711,7 +711,7 @@ fhandler_disk_file::link (const char *newpath)
strcpy (new_lnk_buf, newpath);
strcat (new_lnk_buf, ".lnk");
newpath = new_lnk_buf;
- newpc.check (newpath, PC_SYM_NOFOLLOW | PC_FULL);
+ newpc.check (newpath, PC_SYM_NOFOLLOW);
}
query_open (query_write_attributes);