***/
#include <errno.h>
-#include <unistd.h>
#include <malloc.h>
#include <sys/un.h>
return;
selabel_close(label_hnd);
+ label_hnd = NULL;
#endif
}
r = lsetfilecon(path, fcon);
/* If the FS doesn't support labels, then exit without warning */
- if (r < 0 && errno == ENOTSUP)
+ if (r < 0 && errno == EOPNOTSUPP)
return 0;
}
}