[Bug 224015] filemon(4) can't deal with newlines in paths

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Jan 29 12:06:25 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224015

--- Comment #4 from Jan Bramkamp <crest at bultmann.eu> ---
The problem isn't that make's meta mode doesn't work for sane code bases, but
that filemon could be very useful for dealing with other kinds of applications
as well. Those applications have to support all user provided file names. Yes a
user should be smacked over the head for creating file names with new lines,
but that isn't valid excuse leave APIs broken. In theory a path can contain all
characters except the NUL byte which acts as terminator for C strings. And the
forward slash is the only path separator. A file system monitoring API should
be able to deal with all legal paths not just some "sane" subset we all like
because it lets us get away with sloppy scripts (e.g. assume that file names
don't include anything from $IFS, will neither contain neither backticks nor
dollar signs, ...).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list