capset02: Fix comment indentation to fit RST format
PATCH 1/1 capset02: Fix comment indentation to fit RST format
Signed-off-by Ma Xinjian <[email protected]>
--- testcases/kernel/syscalls/capset/capset02.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
testcases/kernel/syscalls/capset/capset02.c +6 -6
@@ -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
PATCH v2 1/1 capset02: Fix the doc to fit RST format
Fix the indent and change to bullet point lists.
Signed-off-by Ma Xinjian <[email protected]>
--- testcases/kernel/syscalls/capset/capset02.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-)
testcases/kernel/syscalls/capset/capset02.c +8 -13
@@ -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