Skip to contentSkip to conversation

chmod06: Fix comment indentation to fit RST format

PATCH New Ma Xinjian via ltp 1 participant 2 messages Feb 19, 2025 – Feb 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 chmod06: Fix comment indentation to fit RST format

---
 testcases/kernel/syscalls/chmod/chmod06.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/chmod/chmod06.c +1 -1
index 7055f0da0..66b69df54 100644
@@ -9,7 +9,7 @@
  * Verify that, chmod(2) returns -1 and sets errno to
  *
  * 1. EPERM if the effective user id of process does not match the owner of the
- * file and the process is not super user
+ *    file and the process is not super user
  * 2. EACCES if search permission is denied on a component of the path prefix
  * 3. EFAULT if pathname points outside user's accessible address space
  * 4. ENAMETOOLONG if the pathname component is too long
Signature · 5 lines
2.47.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

PATCH v2 1/1 chmod06: Fix the doc to fit RST format

Fix the indent and change to bullet point lists.

---
 testcases/kernel/syscalls/chmod/chmod06.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
testcases/kernel/syscalls/chmod/chmod06.c +7 -7
index 7055f0da0..40255184d 100644
@@ -8,13 +8,13 @@
 /*\
  * Verify that, chmod(2) returns -1 and sets errno to
  *
- * 1. EPERM if the effective user id of process does not match the owner of the
- * file and the process is not super user
- * 2. EACCES if search permission is denied on a component of the path prefix
- * 3. EFAULT if pathname points outside user's accessible address space
- * 4. ENAMETOOLONG if the pathname component is too long
- * 5. ENOTDIR if the directory component in pathname is not a directory
- * 6. ENOENT if the specified file does not exists
+ * - EPERM if the effective user id of process does not match the owner of the
+ *   file and the process is not super user
+ * - EACCES if search permission is denied on a component of the path prefix
+ * - EFAULT if pathname points outside user's accessible address space
+ * - ENAMETOOLONG if the pathname component is too long
+ * - ENOTDIR if the directory component in pathname is not a directory
+ * - ENOENT if the specified file does not exists
  */
 
 #include <pwd.h>
Signature · 5 lines
2.47.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp