threads / discuss / 11736

git add does not sanitize paths

Subject: git add does not sanitize paths

## tl;dr

One message between Jan 25, 2008 and Jan 25, 2008.

replies: 0people: 1as markdown or json

Jan Engelhardt· Jan 25, 2008, 19:57 UTC · lore
Hi,
	git add net/netfilter//nf_conntrack_sip.c

while this is a valid path in Linux, git refuses to add it to the index. Would it be worthwhile to sanitize it (either by calling realpath(3) or by doing a stat(2))? (Please consider this as a feature request.) Please cc on replies, thanks :)

Jan
- git version 1.5.3.4

← back to recent threads