summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar H. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-09-27 08:49:40 -0700
committerLibravatar H. Peter Anvin <hpa@smyrno.hos.anvin.org>2005-09-27 08:49:40 -0700
commit47888f0f3188c39e13e02ad8442c5e785d2ebcdd (patch)
tree61005dcaae75d1279d3b2231c7b59ef7e4f8d030
parentSupport a modicum of path validation, and allow an export all trees option. (diff)
downloadtgif-47888f0f3188c39e13e02ad8442c5e785d2ebcdd.tar.xz
Restore chdir(".git")
-rw-r--r--daemon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 0ca6cef939..a369ce527e 100644
--- a/daemon.c
+++ b/daemon.c
@@ -131,6 +131,8 @@ static int upload(char *dir, int dirlen)
return -1;
}
+ chdir(".git");
+
/*
* Security on the cheap.
*