@matheusbsbs / matheus-bagliano / commits / 1fda3d557b
Fork 0

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>

Mark Wooding committed Feb 3, 2006 at 20:27 UTC 1fda3d557b7c9e19e008c3a3d77f1922341796d7
1 file changed +1 -1
daemon.c
+1 -1
@@ -147,7 +147,7 @@ static char *path_ok(char *dir)
147 static char rpath[PATH_MAX];
148 if (*dir != '/') {
149 /* Forbid possible base-path evasion using ~paths. */
150 - logerror("'%s': Non-absolute path denied (base-path active)");
150 + logerror("'%s': Non-absolute path denied (base-path active)", dir);
151 return NULL;
152 }
153 snprintf(rpath, PATH_MAX, "%s%s", base_path, dir);