summaryrefslogtreecommitdiff
path: root/src/bin/normalpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/normalpath.c')
-rw-r--r--src/bin/normalpath.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/normalpath.c b/src/bin/normalpath.c
index 2ea916f..a80ecda 100644
--- a/src/bin/normalpath.c
+++ b/src/bin/normalpath.c
@@ -18,7 +18,9 @@ int main(int argc,char *argv[]) {
strcpy(out,(char *)getenv("HOME"));
break;
default:
- getcwd(out,MAXPATHLEN);
+//old code, but might be what I decide I /really/ want.
+// getcwd(out,MAXPATHLEN);
+ if(getenv("PWD")) strcpy(out,getenv("PWD"));
strcat(out,"/");
}
strcat(out,s);