summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorlolilolicon <lolilolicon@gmail.com>2011-09-29 10:45:20 +0800
committerDan McGee <dan@archlinux.org>2011-09-29 13:02:41 -0500
commit83c05e71bc6e614f6f3d190d5e752a0c5239a2d1 (patch)
treeeddaeb10baf0c7bdbac98c8a670e752d17f905b6 /doc
parent1463a9aa3646a0886b7ec892f4a436ea5bb4749a (diff)
downloadpacman-83c05e71bc6e614f6f3d190d5e752a0c5239a2d1.tar.xz
paccache: allow strictly integer for -k option
Verify the argument to -k is a non-negative integer. Leading zeros are simply stripped. 'declare -i keep' allowed the argument to -k to be any arithmetic evaluation expression. The simple assignment 'keep=$OPTARG' triggers arithmetic evaluation implicitly, which can either consume a huge amount of resources with input such as '2**2**32' or immediately produce an error on invalid input. Instead, we simply 'declare -- keep' and avoid all that. Signed-off-by: lolilolicon <lolilolicon@gmail.com> Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions