* path.cc (normalize_posix_path): Revert .. check removed by previous changes.

* cygheap.h: Temporarily declare path_prefix_p here.
This commit is contained in:
Christopher Faylor
2001-06-04 01:28:09 +00:00
parent 9f13167f77
commit ac5561f2ed
5 changed files with 39 additions and 26 deletions

View File

@@ -46,6 +46,9 @@ struct cygheap_root_mount_info
unsigned native_pathlen;
};
/* CGF: FIXME This doesn't belong here */
int path_prefix_p (const char *path1, const char *path2, int len1) __attribute__ ((regparm (3)));
class cygheap_root
{
/* Root directory information.
@@ -55,7 +58,6 @@ class cygheap_root
public:
bool posix_ok (const char *path)
{
extern int path_prefix_p (const char *, const char *, int);
if (!m)
return 1;
return path_prefix_p (m->posix_path, path, m->posix_pathlen);