OSDN Git Service

init: wildcard matching for chmod/chown in init.rc
authorAndrew Boie <andrew.p.boie@intel.com>
Tue, 27 Nov 2012 21:21:38 +0000 (13:21 -0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 16 Jun 2013 06:52:01 +0000 (14:52 +0800)
commit1a93b14cab671594aa89d07cb72465d3c1712dbe
treec4a3af1314bcd3ac068fc390bb02641f3b187640
parentea234739c14b3a26b8ed878778006c40690085d7
init: wildcard matching for chmod/chown in init.rc

Implement wildcard matching for the builtin command
chmod and chown for use in init.rc.

For security reason, the number of slashes has to match.
For example, to match /dir_a/dir_b/dir_c/dir_d/file,
the path needs to be /dir_a/*/*/*/file. Simply doing
/dir_a/*/file does not work.

Issue: AXIA-576
Change-Id: I21b5aa58b3d3142725bc73ff31afb65d4fd4bc99
Signed-off-by: Daniel Leung <daniel.leung@intel.com>
init/builtins.c