diff options
author | John Crispin <blogic@openwrt.org> | 2015-09-14 20:09:06 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-09-14 20:09:06 +0000 |
commit | 62b8a84312803f029a4056cbfbb2090bc42110c2 (patch) | |
tree | 028d2d2b53cf46d30904ab29a8fa76f09ca08fcd /package/kernel | |
parent | 2539b9f5a333104ace7584a8ed57bd78d697dbbc (diff) | |
download | master-187ad058-62b8a84312803f029a4056cbfbb2090bc42110c2.tar.gz master-187ad058-62b8a84312803f029a4056cbfbb2090bc42110c2.tar.bz2 master-187ad058-62b8a84312803f029a4056cbfbb2090bc42110c2.zip |
base-files: sysupgrade: quote source image name
get_image() eval a filename without quoting it, resulting in errors with
filenames containing characters that need to be escaped.
$ sysupgrade -T -f ./cfg\(12\).tar.gz img.bin; echo $?
Image check 'platform_check_image' failed.
Invalid config file. Please use only .tar.gz files
1
$ mv cfg\(12\).tar.gz cfg_12.tar.gz
$ mv img\(1\).bin img.bin
sysupgrade -T -f ./cfg_12.tar.gz img.bin; echo $?
0
Enclose the content of $from in double quotes.
Signed-off-by: Adrien Schildknecht <adrien+dev@schischi.me>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46919 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
0 files changed, 0 insertions, 0 deletions