diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-23 03:35:50 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-23 03:35:50 +0000 |
commit | ad30b4ffcaded89b97dd812b810f73386ce6e034 (patch) | |
tree | 1927fd0db3a020e01eb43a2df0ff08318b89e91a /winsup/cygwin/path.cc | |
parent | de7ba863d84c416776e1af23d923ffe0189e63e9 (diff) | |
download | cygnal-ad30b4ffcaded89b97dd812b810f73386ce6e034.tar.gz cygnal-ad30b4ffcaded89b97dd812b810f73386ce6e034.tar.bz2 cygnal-ad30b4ffcaded89b97dd812b810f73386ce6e034.zip |
* fork.cc (fork): Set sigframe here, since it can pause for a considerable
amount of time.
* environ.cc (_addenv): Add debugging.
* fhandler.cc: Eliminate unneeded include.
* smallprint.c: Ditto.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 1f9684443..ff622e92b 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -170,6 +170,17 @@ path_conv::check (const char *src, unsigned opt, symlink_info sym; bool need_directory = 0; +#if 0 + static path_conv last_path_conv; + static char last_src[MAX_PATH + 1]; + + if (*last_src && strcmp (last_src, src) == 0) + { + *this = last_path_conv; + return; + } +#endif + char *rel_path, *full_path; if (!(opt & PC_NULLEMPTY)) @@ -392,6 +403,14 @@ out: tmp_buf, full_path, volflags & FS_PERSISTENT_ACLS); set_has_acls (volflags & FS_PERSISTENT_ACLS); } + +#if 0 + if (!error) + { + last_path_conv = *this; + strcpy (last_src, src); + } +#endif } #define deveq(s) (strcasematch (name, (s))) |