[LTP] [PATCH] fchmod05: Convert docs to docparse

Ma Xinjian maxj.fnst@fujitsu.com
Mon Dec 16 08:03:29 CET 2024


Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
 testcases/kernel/syscalls/fchmod/fchmod05.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/testcases/kernel/syscalls/fchmod/fchmod05.c b/testcases/kernel/syscalls/fchmod/fchmod05.c
index 0c731d601..e5de86117 100644
--- a/testcases/kernel/syscalls/fchmod/fchmod05.c
+++ b/testcases/kernel/syscalls/fchmod/fchmod05.c
@@ -2,18 +2,18 @@
 /*
  * Copyright (c) International Business Machines  Corp., 2001
  * Author: Wayne Boyer
+ */
+
+/*\
+ * [Description]
  *
- * Test Description:
- *  Verify that, fchmod(2) will succeed to change the mode of a directory
- *  but fails to set the setgid bit on it if invoked by non-root (uid != 0)
- *  process with the following constraints,
- *	- the process is the owner of the directory.
- *	- the effective group ID or one of the supplementary group ID's of the
- *	  process is not equal to the group ID of the directory.
+ * Verify that, fchmod(2) will succeed to change the mode of a directory
+ * but fails to set the setgid bit on it if invoked by non-root (uid != 0)
+ * process with the following constraints,
  *
- * Expected Result:
- *  fchmod() should return value 0 on success and though succeeds to change
- *  the mode of a directory but fails to set setgid bit on it.
+ * - the process is the owner of the directory.
+ * - the effective group ID or one of the supplementary group ID's of the
+ *   process is not equal to the group ID of the directory.
  */
 
 #include <pwd.h>
-- 
2.47.0



More information about the ltp mailing list