Alexey Tourbin 2b1c36538f find-package: implemented protection against shell metacharacters and evil paths
There are two possibilities for protection:
1) we should protect at least from very evil shell metacharacters,
like [$*], and also from [:cntrl:] (e.g. newline).
2) we can provide an exhaustive list of characters that are valid
for non-evil pathnames and commands, and issue mandatory warning
if the command or path appears to be evil.

I chose the latter approach.
Valid character range is 'A-Za-z0-9/@=.,:_+-'.

Note that (almost) all files from our base build system
are valid paths:

$ valid='A-Za-z0-9/@=.,:_+-'
$ hsh-run -- rpm -qal |grep "[^$valid]"
/usr/bin/[
/usr/share/man/man1/[.1.bz2
(contains no files)
(contains no files)
$

Later we'll see if the range of valid characters needs to be extended.
2007-09-10 13:32:26 +04:00
..
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-09-16 22:20:03 +00:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-09-16 22:20:03 +00:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2003-11-08 19:52:04 +00:00
2007-03-12 15:05:18 +03:00
2007-03-12 15:05:18 +03:00
2006-05-14 17:05:34 +04:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2006-05-14 17:05:34 +04:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2007-03-11 15:00:33 +03:00
2007-03-11 15:00:33 +03:00
2007-03-11 15:00:33 +03:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2007-03-12 15:06:07 +03:00
2007-03-12 15:06:07 +03:00
2007-03-12 15:06:07 +03:00
2007-03-12 15:06:07 +03:00
2003-09-12 16:27:18 +00:00
2003-09-22 13:56:20 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 21:51:30 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2007-03-11 15:00:24 +03:00
2007-03-11 15:00:24 +03:00
2007-03-11 15:00:23 +03:00
2006-01-11 00:39:39 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2007-03-11 15:00:35 +03:00
2007-03-11 15:00:35 +03:00
2006-05-14 17:05:34 +04:00
2007-03-12 15:06:09 +03:00
2007-03-12 15:06:09 +03:00
2003-09-22 13:54:41 +00:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00
2006-05-14 17:05:34 +04:00
2002-03-25 20:16:26 +00:00
2002-03-25 20:16:26 +00:00