diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-05 11:45:44 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-05 11:45:44 +0100 |
commit | e66a212081bcca521760ccff3a2da0deccd99340 (patch) | |
tree | e3d5b962216333435cc88219595c849e77e7774c | |
parent | a116552869db5e7793ae10968eb3c962c69b3d8c (diff) | |
download | busybox-w32-e66a212081bcca521760ccff3a2da0deccd99340.tar.gz busybox-w32-e66a212081bcca521760ccff3a2da0deccd99340.tar.bz2 busybox-w32-e66a212081bcca521760ccff3a2da0deccd99340.zip |
mkswap: selinux build fix
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | util-linux/mkswap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
15 | if (!is_selinux_enabled()) | 15 | if (!is_selinux_enabled()) |
16 | return; | 16 | return; |
17 | 17 | ||
18 | xfstat(fd, &stbuf, argv[0]); | 18 | xfstat(fd, &stbuf, path); |
19 | if (S_ISREG(stbuf.st_mode)) { | 19 | if (S_ISREG(stbuf.st_mode)) { |
20 | security_context_t newcon; | 20 | security_context_t newcon; |
21 | security_context_t oldcon = NULL; | 21 | security_context_t oldcon = NULL; |