svn commit: trunk/busybox/util-linux

aldot at busybox.net aldot at busybox.net
Thu Apr 24 10:44:32 UTC 2008


Author: aldot
Date: 2008-04-24 03:44:31 -0700 (Thu, 24 Apr 2008)
New Revision: 21829

Log:
- 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'


Modified:
   trunk/busybox/util-linux/mkswap.c


Changeset:
Modified: trunk/busybox/util-linux/mkswap.c
===================================================================
--- trunk/busybox/util-linux/mkswap.c	2008-04-24 10:35:57 UTC (rev 21828)
+++ trunk/busybox/util-linux/mkswap.c	2008-04-24 10:44:31 UTC (rev 21829)
@@ -35,7 +35,8 @@
 		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);




More information about the busybox-cvs mailing list