upgraded: Check chroot() return value
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 15 Jul 2017 17:59:51 +0000 (10:59 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Thu, 20 Jul 2017 15:31:37 +0000 (08:31 -0700)
commit13f252f39d2f870d01884d1b0cf0a91a1a669d03
treeddc889568f8697444bb634501bae3c31be48c1bd
parent85ccb95c1110ad7c08d918f39f7930aab38d56f8
upgraded: Check chroot() return value

Check the chroot() return value, fixes unused return value warnings/errors:

procd-2017-06-22-e5e99c46/upgraded/upgraded.c:78:8: error: ignoring return
value of 'chroot', declared with attribute warn_unused_result
[-Werror=unused-result] chroot(".");

Fixes: 056d8ddda8d5 ("upgraded: link dynamically, chroot during exec")
Reviewed-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
upgraded/upgraded.c