From: Bernhard Reutner-Fischer Date: Thu, 24 Apr 2008 10:44:31 +0000 (-0000) Subject: - fsetfilecon_war is hidden so use fsetfilecon instead. X-Git-Tag: 1_11_0~293 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c6191e9a0ab4c05040d246760a619be7c62f84b2;p=oweals%2Fbusybox.git - fsetfilecon_war is hidden so use fsetfilecon instead. Fixes dynamic linking-error: util-linux/lib.a(mkswap.o): In function `mkswap_selinux_setcontext': util-linux/mkswap.c:38: undefined reference to `fsetfilecon_raw' --- diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index bf0d7b074..1c364efe9 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c @@ -35,7 +35,8 @@ static void mkswap_selinux_setcontext(int fd, const char *path) newcon = context_str(context); if (!newcon) goto error; - if (strcmp(oldcon, newcon) != 0 && fsetfilecon_raw(fd, newcon) < 0) + /* fsetfilecon_raw is hidden */ + if (strcmp(oldcon, newcon) != 0 && fsetfilecon(fd, newcon) < 0) goto error; if (ENABLE_FEATURE_CLEAN_UP) { context_free(context);