hotplug: Check chown return value
authorFlorian Fainelli <f.fainelli@gmail.com>
Sat, 3 Dec 2016 17:32:21 +0000 (09:32 -0800)
committerJohn Crispin <john@phrozen.org>
Sun, 4 Dec 2016 15:06:31 +0000 (16:06 +0100)
commite999ab7e5ab5f8284f2987f7e1e0b9b7a63c4761
treee48cad9217207bd2420ab836362cbbb4f797b108
parenta07669704798cb0262485f69c5547033c64ade58
hotplug: Check chown return value

Fixes:

plug/hotplug.c:152:10: error: ignoring return value of 'chown', declared with attribute warn_unused_result [-Werror=unused-result]
     chown(blobmsg_get_string(tb[0]), 0, g->gr_gid);

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
plug/hotplug.c