projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a116552
)
mkswap: selinux build fix
author
Denys Vlasenko
<dvlasenk@redhat.com>
Wed, 5 Jan 2011 10:45:44 +0000
(11:45 +0100)
committer
Denys Vlasenko
<dvlasenk@redhat.com>
Wed, 5 Jan 2011 10:45:44 +0000
(11:45 +0100)
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
util-linux/mkswap.c
patch
|
blob
|
history
diff --git
a/util-linux/mkswap.c
b/util-linux/mkswap.c
index 53537fcd9dceb1e28742a3c9d572af964df50d93..2e9662b2ba0109535fd14650036e07ea0d707a2e 100644
(file)
--- 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;