Re: [RFC] daemon whitelist handling (Re: git pull aborts in 50% of cases)
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 3, 2005, 20:20 UTC
- Message-ID
- <7vvey6vsop.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <4391F4DD.2060002@zytor.com>
"H. Peter Anvin" <hpa@zytor.com> writes:
> At the very least, if you insist on using getcwd() names, you should > pre-canonicalize the whitelist, too.
With the current "prefix" rule (and not allowing /ho to match /home) that sounds possible and sensivle, but that is not nice in the long run. We may later want to say "/pub/git/**/*.git" for example to mean "any subdirectory under /pub/git but the base directory name must be something ending with '.git'".
Hmm...