[LTP] [COMMITTED] [PATCH 18/40] Make use of SAFE_FCHOWN()
Cyril Hrubis
chrubis@suse.cz
Tue Oct 3 16:19:51 CEST 2017
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
---
testcases/kernel/syscalls/chown/chown03.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/chown/chown03.c b/testcases/kernel/syscalls/chown/chown03.c
index b88b6699a..2c7bcfe7d 100644
--- a/testcases/kernel/syscalls/chown/chown03.c
+++ b/testcases/kernel/syscalls/chown/chown03.c
@@ -181,8 +181,7 @@ void setup(void)
SAFE_SETEUID(cleanup, 0);
- if (fchown(fd, -1, 0) < 0)
- tst_brkm(TBROK | TERRNO, cleanup, "fchown failed");
+ SAFE_FCHOWN(cleanup, fd, -1, 0);
SAFE_FCHMOD(cleanup, fd, NEW_PERMS);
--
2.13.5
More information about the ltp
mailing list