summaryrefslogtreecommitdiff
path: root/package/php/php.hash
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@kymetacorp.com>2016-03-08 21:02:15 +0000
committerPeter Korsgaard <peter@korsgaard.com>2016-04-28 23:48:09 +0200
commitbbe29b9896d5a6a3b10c999522bb0ac29e934b51 (patch)
tree93aa75ae75db52dc33a4b214d90f1c16f8252a89 /package/php/php.hash
parent61451d7dd95c4b764465e1e14b894c52477cb779 (diff)
purge-locales: Handle empty locale directories better
If a locale directory is empty, shell code like "for langdir in $$dir/*;" will loop once with langdir set to "path/to/dir/*", rather than not looping at all, which would obviously be the desired behavior. Then "grep -qx $${langdir##*/}" ungoes two shell expansions (how?) that transform the expression from "${langdir##*/}" to "*" to "list of all files in buildroot root dir". Which is most certainly not what this command was supposed to do. If one of those files happens to be an 8GB flash image, grep consumes all available memory and crashes trying to search it. Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/php/php.hash')
0 files changed, 0 insertions, 0 deletions