summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenys Vlasenko2011-01-05 11:45:44 +0100
committerDenys Vlasenko2011-01-05 11:45:44 +0100
commite66a212081bcca521760ccff3a2da0deccd99340 (patch)
treee3d5b962216333435cc88219595c849e77e7774c /util-linux
parenta116552869db5e7793ae10968eb3c962c69b3d8c (diff)
downloadbusybox-e66a212081bcca521760ccff3a2da0deccd99340.zip
busybox-e66a212081bcca521760ccff3a2da0deccd99340.tar.gz
mkswap: selinux build fix
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/mkswap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c
index 53537fc..2e9662b 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;