[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mgp-users-jp 00678] Forward: Bug#52112: mgp: %filter does not allow quoting



これは security のためにわざとこうしているんだったと思いますが
その理解で正しいでしょうか?

-- 
鵜飼文敏

--- Begin Message ---
Package: mgp
Version: 1.06a.19991129-1

%filter does not call the shell, as system() does in C.  Thus "sh -c
'...'" must be called to get shell functionalities (stderr
redirection, pipe, etc.).

However, mgp does not take ' into account when word-splitting %filter
command-line.  Hence the following ends with sh complaining about a
syntax error:

%filter "sh -c 'ls -l /'"
%endfilter


--- End Message ---