]> Cypherpunks repositories - gostls13.git/commitdiff
8l: fix absolute path detection on Windows
authorRuss Cox <rsc@golang.org>
Fri, 30 Apr 2010 19:48:03 +0000 (12:48 -0700)
committerRuss Cox <rsc@golang.org>
Fri, 30 Apr 2010 19:48:03 +0000 (12:48 -0700)
Fixes #755.

R=ken2
CC=golang-dev
https://golang.org/cl/965047

src/cmd/ld/lib.c

index 18c4255161613a4f9c316f18800c9f82bc2ba15a..c13cd11c797310141fb6f6951503e3dcc0a44c88 100644 (file)
@@ -103,6 +103,10 @@ addlib(char *src, char *obj)
                sprint(name, "");
                i = 1;
        } else
+       if(isalpha(histfrog[0]->name[1]) && histfrog[0]->name[2] == ':') {
+               strcpy(name, histfrog[0]->name+1);
+               i = 1;
+       } else
        if(histfrog[0]->name[1] == '.') {
                sprint(name, ".");
                i = 0;