summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
authorMark Wooding <mdw@distorted.org.uk>2006-02-03 20:27:02 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-04 07:33:20 (GMT)
commit1fda3d557b7c9e19e008c3a3d77f1922341796d7 (patch)
treec9966935e5d59fc61fd0f681661947e69ff2881f /daemon.c
parentc0c74a88f9016dad4665a4f1d446cebb2bdb1968 (diff)
downloadgit-1fda3d557b7c9e19e008c3a3d77f1922341796d7.zip
git-1fda3d557b7c9e19e008c3a3d77f1922341796d7.tar.gz
git-1fda3d557b7c9e19e008c3a3d77f1922341796d7.tar.bz2
daemon: Provide missing argument for logerror() call.
Could cause a crash if --base-path set. Unlikely to be a security the concern: message doesn't go to the client, so we can't leak anything (except by dumping core), and we've already forked, so it's not a denial of service. Signed-off-by: Mark Wooding <mdw@distorted.org.uk> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index bb014fa..532bb0c 100644
--- a/daemon.c
+++ b/daemon.c
@@ -147,7 +147,7 @@ static char *path_ok(char *dir)
static char rpath[PATH_MAX];
if (*dir != '/') {
/* Forbid possible base-path evasion using ~paths. */
- logerror("'%s': Non-absolute path denied (base-path active)");
+ logerror("'%s': Non-absolute path denied (base-path active)", dir);
return NULL;
}
snprintf(rpath, PATH_MAX, "%s%s", base_path, dir);