isgx: fix: clear flag for directory parameter in smackload/smackctl
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 27 Nov 2013 22:03:06 +0000 (00:03 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 27 Nov 2013 22:03:06 +0000 (00:03 +0200)
commit233dc309dc52d2ba8cf7acfab35ec221507721bb
tree34a75a773742a80016fc89bab5d2e5317baf0221
parent9fabf146e0a1ea17dd63aa6af00c10151e0cf64d
isgx: fix: clear flag for directory parameter in smackload/smackctl

Clear flag was not properly applied when directory is given
for smackload. This patch fixes the issue. I decided to move
into opendir/readdir approach because nftw() does not support
supplying any kind of state to the callback. The end result
looks also more manageable that we had before.

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