openwrtv3/package/base-files/files/lib
John Crispin 4ef319fad2 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>

SVN-Revision: 46919
2015-09-14 20:09:06 +00:00
..
functions base-files: allow setting ide-disk led trigger 2015-09-04 14:45:45 +00:00
preinit base-files: add /etc/iproute2/rt_tables, replace ifconfig-usage 2015-09-08 17:44:13 +00:00
upgrade base-files: sysupgrade: quote source image name 2015-09-14 20:09:06 +00:00
functions.sh base-files: default_postinst: propagate the real postinst return code 2015-08-17 06:17:23 +00:00