Skip to contentSkip to conversation

capset02: 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 capset02: Fix comment indentation to fit RST format

---
 testcases/kernel/syscalls/capset/capset02.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
testcases/kernel/syscalls/capset/capset02.c +6 -6
index 36d799663..b3cece90d 100644
@@ -9,17 +9,17 @@
  * Tests basic error handling of the capset syscall.
  *
  * 1. capset() fails with errno set to EFAULT if an invalid address
- * is given for header.
+ *    is given for header.
  * 2. capset() fails with errno set to EFAULT if an invalid address
- * is given for data.
+ *    is given for data.
  * 3. capset() fails with errno set to EINVAL if an invalid value
- * is given for header->version.
+ *    is given for header->version.
  * 4. capset() fails with errno set to EPERM if the new_Effective is
- * not a subset of the new_Permitted.
+ *    not a subset of the new_Permitted.
  * 5. capset() fails with errno set to EPERM if the new_Permitted is
- * not a subset of the old_Permitted.
+ *    not a subset of the old_Permitted.
  * 6. capset() fails with errno set ot EPERM if the new_Inheritable is
- * not a subset of  the old_Inheritable and bounding set.
+ *    not a subset of  the old_Inheritable and bounding set.
  */
 
 #include <stdlib.h>
Signature · 5 lines
2.47.0


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

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

Fix the indent and change to bullet point lists.

---
 testcases/kernel/syscalls/capset/capset02.c | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)
testcases/kernel/syscalls/capset/capset02.c +8 -13
index 36d799663..f9d4d860b 100644
@@ -6,20 +6,15 @@
  */
 
 /*\
- * Tests basic error handling of the capset syscall.
+ * Verify that, capset(2) fails and sets errno to
  *
- * 1. capset() fails with errno set to EFAULT if an invalid address
- * is given for header.
- * 2. capset() fails with errno set to EFAULT if an invalid address
- * is given for data.
- * 3. capset() fails with errno set to EINVAL if an invalid value
- * is given for header->version.
- * 4. capset() fails with errno set to EPERM if the new_Effective is
- * not a subset of the new_Permitted.
- * 5. capset() fails with errno set to EPERM if the new_Permitted is
- * not a subset of the old_Permitted.
- * 6. capset() fails with errno set ot EPERM if the new_Inheritable is
- * not a subset of  the old_Inheritable and bounding set.
+ * - EFAULT if an invalid address is given for header.
+ * - EFAULT if an invalid address is given for data.
+ * - EINVAL if an invalid value is given for header->version.
+ * - EPERM if the new_Effective is not a subset of the new_Permitted.
+ * - EPERM if the new_Permitted is not a subset of the old_Permitted.
+ * - EPERM if the new_Inheritable is not a subset of the
+ *   old_Inheritable and bounding set.
  */
 
 #include <stdlib.h>
Signature · 5 lines
2.47.0


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