testsuite/runtest: remove (last) bashism

mkswap: fix selinux build
This commit is contained in:
Denis Vlasenko
2008-04-25 08:43:01 +00:00
parent a6b3a1f0bf
commit 95842fbc16
2 changed files with 11 additions and 8 deletions

View File

@@ -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)