aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-04-25 08:43:01 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-04-25 08:43:01 +0000
commit95842fbc163d935cc5f7dc67dd49bbe906c2eae4 (patch)
treec65356f33af8e6df766bf95d55983ca87b97151f /util-linux
parenta6b3a1f0bfc394a18b4cb4181a4827bf054206b4 (diff)
downloadbusybox-w32-95842fbc163d935cc5f7dc67dd49bbe906c2eae4.tar.gz
busybox-w32-95842fbc163d935cc5f7dc67dd49bbe906c2eae4.tar.bz2
busybox-w32-95842fbc163d935cc5f7dc67dd49bbe906c2eae4.zip
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 1c364efe9..11c411b6a 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)
23 security_context_t oldcon = NULL; 23 security_context_t oldcon = NULL;
24 context_t context; 24 context_t context;
25 25
26 if (fgetfilecon_raw(fd, &oldcon) < 0) { 26 if (fgetfilecon(fd, &oldcon) < 0) {
27 if (errno != ENODATA) 27 if (errno != ENODATA)
28 goto error; 28 goto error;
29 if (matchpathcon(path, stbuf.st_mode, &oldcon) < 0) 29 if (matchpathcon(path, stbuf.st_mode, &oldcon) < 0)