From: Cyril H. <su...@li...> - 2013-05-18 01:21:20
|
The branch, master, has been updated via 775572079317a1349daa4f044b93d6459e19df8d (commit) from 8cda96ce75618b99fc6bf75ca0dbb2948dbabf43 (commit) - Log ----------------------------------------------------------------- commit 775572079317a1349daa4f044b93d6459e19df8d Author: Vinson Lee <vl...@tw...> Date: Fri May 17 11:56:46 2013 -0700 mount/mount03.c: Add mode argument to open call. This patch fixes this build error on Ubuntu introduced with commit 24324ad5dae71172125060b82580486b0f3d37da. In file included from /usr/include/fcntl.h:252:0, from mount03.c:73: In function âopenâ, inlined from âsetupâ at mount03.c:447:5: /usr/include/x86_64-linux-gnu/bits/fcntl2.h:51:24: error: call to â__open_missing_modeâ declared with attribute error: open with O_CREAT in second argument needs 3 arguments Signed-off-by: Vinson Lee <vl...@tw...> Signed-off-by: Wanlong Gao <gao...@cn...> ----------------------------------------------------------------------- Summary of changes: testcases/kernel/syscalls/mount/mount03.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/syscalls/mount/mount03.c b/testcases/kernel/syscalls/mount/mount03.c index 295b6da..b1aa71f 100644 --- a/testcases/kernel/syscalls/mount/mount03.c +++ b/testcases/kernel/syscalls/mount/mount03.c @@ -444,7 +444,7 @@ void setup() path_name, DIR_MODE); snprintf(file, PATH_MAX, "%s/setuid_test", path_name); - fd = open(file, O_CREAT | O_TRUNC); + fd = open(file, O_CREAT | O_TRUNC, S_IRWXU); if (fd == -1) tst_brkm(TBROK, cleanup, "open file failed"); close(fd); hooks/post-receive -- ltp |