[LTP] [PATCH] fchownat03: Fix comment indentation to fit RST format
Ma Xinjian
maxj.fnst@fujitsu.com
Wed Feb 19 10:21:55 CET 2025
Signed-off-by: Ma Xinjian <maxj.fnst@fujitsu.com>
---
.../kernel/syscalls/fchownat/fchownat03.c | 33 ++++++++-----------
1 file changed, 13 insertions(+), 20 deletions(-)
diff --git a/testcases/kernel/syscalls/fchownat/fchownat03.c b/testcases/kernel/syscalls/fchownat/fchownat03.c
index 5219ca655..93ec5007d 100644
--- a/testcases/kernel/syscalls/fchownat/fchownat03.c
+++ b/testcases/kernel/syscalls/fchownat/fchownat03.c
@@ -5,26 +5,19 @@
*/
/*\
- * Verify that,
- * - fchownat() returns -1 and sets errno to EACCES if there is no permission
- to access to the file.
- * - fchownat() returns -1 and sets errno to EBADF if the file descriptor
- * of the specified file is not valid.
- * - fchownat() returns -1 and sets errno to EFAULT if the filename points
- outside of accessable address space.
- * - fchownat() returns -1 and sets errno to EINVAL if the flag is invalid.
- * - fchownat() returns -1 and sets errno to ELOOP if too many symbolic links
- * were encountered in resolving filename.
- * - fchownat() returns -1 and sets errno to ENAMETOOLONG if the filename is
- too long.
- * - fchownat() returns -1 and sets errno to ENOENT if the specified file does
- * not exist.
- * - fchownat() returns -1 and sets errno to ENOTDIR if the file descriptor is
- * a file.
- * - fchownat() returns -1 and sets errno to EPERM if the effective user id
- * of process does not match the owner of the file and the process is not
- * super user.
- * - fchownat() returns -1 and sets errno to EROFS if the file is readonly.
+ * Verify that fchownat(2) returns -1 and sets errno to:
+ *
+ * - EACCES if there is no permission to access to the file.
+ * - EBADF if the file descriptor of the specified file is not valid.
+ * - EFAULT if the filename points outside of accessable address space.
+ * - EINVAL if the flag is invalid.
+ * - ELOOP if too many symbolic links were encountered in resolving filename.
+ * - ENAMETOOLONG if the filename is too long.
+ * - ENOENT if the specified file does not exist.
+ * - ENOTDIR if the file descriptor is a file.
+ * - EPERM if the effective user id of process does not match the owner of
+ * the file and the process is not super user.
+ * - EROFS if the file is readonly.
*/
#define _GNU_SOURCE
--
2.47.0
More information about the ltp
mailing list