summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc <devnull@localhost>1998-04-15 01:28:33 +0000
committerwtc <devnull@localhost>1998-04-15 01:28:33 +0000
commit901f5e9c02a5f01773b0a63ddd77d59ddb5c97dc (patch)
treed068cc219006ba0b9d44b3ae0059e059e6a09bb9
parent3fd86cbe8d0ac4f7f857042044548e5438893580 (diff)
downloadnspr-hg-901f5e9c02a5f01773b0a63ddd77d59ddb5c97dc.tar.gz
In ConvertUnixPathToMacPath, removed the checks that disallow path names
that begin with /bin, /dev, and /etc. These directories don't have any special meaning on the Mac and should be allowed. Thanks to Mike Pinkerton <pinkerton@netscape.com> for reporting this bug and providing the fix.
-rw-r--r--pr/src/md/mac/macio.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/pr/src/md/mac/macio.c b/pr/src/md/mac/macio.c
index 050d2529..96fe38c4 100644
--- a/pr/src/md/mac/macio.c
+++ b/pr/src/md/mac/macio.c
@@ -1250,24 +1250,6 @@ ConvertUnixPathToMacPath(const char *unixPath, char **macPath)
}
}
- else if (strncmp(unixPath, "/bin", strlen("/bin")) == 0) {
- dprintf("Unable to translate Unix file path %s to Mac path\n", unixPath);
- err = -1;
- goto Exit_ConvertUnixPathToMacPath;
- }
-
- else if (strncmp(unixPath, "/dev", strlen("/dev")) == 0) {
- dprintf("Unable to translate Unix file path %s to Mac path\n", unixPath);
- err = -1;
- goto Exit_ConvertUnixPathToMacPath;
- }
-
- else if (strncmp(unixPath, "/etc", strlen("/etc")) == 0) {
- dprintf("Unable to translate Unix file path %s to Mac path\n", unixPath);
- err = -1;
- goto Exit_ConvertUnixPathToMacPath;
- }
-
else if (!strncmp(unixPath, "/usr/local/netscape/", (tempLen = strlen("/usr/local/netscape/")))) {
unixPath += tempLen;
@@ -1723,24 +1705,6 @@ static OSErr ConvertUnixPathToMacPath(const char *unixPath, char **macPath)
&foundVRefNum, &foundDirID);
}
- else if (strncmp(unixPath, "/bin", strlen("/bin")) == 0) {
- dprintf("Unable to translate Unix file path %s to Mac path\n", unixPath);
- err = -1;
- goto Exit_ConvertUnixPathToMacPath;
- }
-
- else if (strncmp(unixPath, "/dev", strlen("/dev")) == 0) {
- dprintf("Unable to translate Unix file path %s to Mac path\n", unixPath);
- err = -1;
- goto Exit_ConvertUnixPathToMacPath;
- }
-
- else if (strncmp(unixPath, "/etc", strlen("/etc")) == 0) {
- dprintf("Unable to translate Unix file path %s to Mac path\n", unixPath);
- err = -1;
- goto Exit_ConvertUnixPathToMacPath;
- }
-
else if (strncmp(unixPath, "/usr", strlen("/usr")) == 0) {
int usrNetscapePathLen;