utils: fix error message in smackaccess
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 10 Jan 2014 18:05:49 +0000 (20:05 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 10 Jan 2014 18:05:49 +0000 (20:05 +0200)
commit78e66b1e90ca6124fbdcba490958923c7243f128
tree67f9da51576977c5af7f73778a660969c6368547
parentff67a55d948a0909b6c66c421d9077f9b1ce6fcc
utils: fix error message in smackaccess

perror() reports success when validation fails. This patch makes
the error message explicit. Invalid input is the most probable case.
Also, error message is prefixed with the basename of the utility.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
utils/smackaccess.c