summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/path.c b/path.c
index bb18075..70d8a71 100644
--- a/path.c
+++ b/path.c
@@ -198,6 +198,8 @@ set_current_wd(pathx)
if (len > current_wd_size)
current_wd = aresize(current_wd, current_wd_size = len, APERM);
memcpy(current_wd, p, len);
+ if (writefd)
+ dprintf(writefd, "cwd%s\n", p);
if (p != pathx && p != null)
afree(p, ATEMP);
}