summaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko2008-04-25 08:43:01 +0000
committerDenis Vlasenko2008-04-25 08:43:01 +0000
commit95842fbc163d935cc5f7dc67dd49bbe906c2eae4 (patch)
treec65356f33af8e6df766bf95d55983ca87b97151f /util-linux
parenta6b3a1f0bfc394a18b4cb4181a4827bf054206b4 (diff)
downloadbusybox-95842fbc163d935cc5f7dc67dd49bbe906c2eae4.zip
busybox-95842fbc163d935cc5f7dc67dd49bbe906c2eae4.tar.gz
testsuite/runtest: remove (last) bashism
mkswap: fix selinux build
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 1c364ef..11c411b 100644
--- a/util-linux/mkswap.c
+++ b/util-linux/mkswap.c
@@ -23,7 +23,7 @@ static void mkswap_selinux_setcontext(int fd, const char *path)
security_context_t oldcon = NULL;
context_t context;
- if (fgetfilecon_raw(fd, &oldcon) < 0) {
+ if (fgetfilecon(fd, &oldcon) < 0) {
if (errno != ENODATA)
goto error;
if (matchpathcon(path, stbuf.st_mode, &oldcon) < 0)