From: Denys Vlasenko Date: Wed, 5 Jan 2011 10:45:44 +0000 (+0100) Subject: mkswap: selinux build fix X-Git-Tag: 1_19_0~418 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e66a212081bcca521760ccff3a2da0deccd99340;p=oweals%2Fbusybox.git mkswap: selinux build fix Signed-off-by: Denys Vlasenko --- diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index 53537fcd9..2e9662b2b 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c @@ -15,7 +15,7 @@ static void mkswap_selinux_setcontext(int fd, const char *path) if (!is_selinux_enabled()) return; - xfstat(fd, &stbuf, argv[0]); + xfstat(fd, &stbuf, path); if (S_ISREG(stbuf.st_mode)) { security_context_t newcon; security_context_t oldcon = NULL;