Code

Do not DWIM in userpath library under strict mode.
authorJunio C Hamano <junkio@cox.net>
Fri, 18 Nov 2005 22:59:34 +0000 (14:59 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 20 Nov 2005 04:50:38 +0000 (20:50 -0800)
commit0870ca7fabe6f25095431280e480859f7c66e8ab
treebd8c24b3a1b2fe52baa3c9474ea6cefec209bedf
parent54f4b87454824fedc629219620ce9b7cdcab3d27
Do not DWIM in userpath library under strict mode.

This should force git-daemon administrator's job a bit harder
because the exact paths need to be given in the whitelist, but
at the same time makes the auditing easier.

This moves validate_symref() from refs.c to path.c, because we
need to link path.c with git-daemon for its "enter_repo()", but
we do not want to link the daemon with the rest of git libraries
and its requirements.

Signed-off-by: Junio C Hamano <junkio@cox.net>
path.c
refs.c