|
6 | 6 | * Ported to LTP: Wayne Boyer |
7 | 7 | */ |
8 | 8 |
|
9 | | -/* |
10 | | - * Testcase to check execve sets the following errnos correctly: |
11 | | - * 1. ENAMETOOLONG |
12 | | - * 2. ENOENT |
13 | | - * 3. ENOTDIR |
14 | | - * 4. EFAULT |
15 | | - * 5. EACCES |
16 | | - * 6. ENOEXEC |
17 | | - * |
18 | | - * ALGORITHM |
19 | | - * 1. Attempt to execve(2) a file whose name is more than |
20 | | - * VFS_MAXNAMLEN fails with ENAMETOOLONG. |
21 | | - * |
22 | | - * 2. Attempt to execve(2) a file which doesn't exist fails with |
23 | | - * ENOENT. |
24 | | - * |
25 | | - * 3. Attempt to execve(2) a pathname (executabl) comprising of a |
26 | | - * directory, which doesn't exist fails with ENOTDIR. |
27 | | - * |
28 | | - * 4. Attempt to execve(2) a filename not within the address space |
29 | | - * of the process fails with EFAULT. |
30 | | - * |
31 | | - * 5. Attempt to execve(2) a filename that does not have executable |
32 | | - * permission - fails with EACCES. |
| 9 | +/*\ |
| 10 | + * Test to check :man2:`execve` sets the following errnos correctly: |
33 | 11 | * |
34 | | - * 6. Attempt to execve(2) a zero length file with executable |
35 | | - * permissions - fails with ENOEXEC. |
| 12 | + * 1. ENAMETOOLONG -- the file name is greater than VFS_MAXNAMELEN |
| 13 | + * 2. ENOENT -- the filename does not exist |
| 14 | + * 3. ENOTDIR -- the path contains a directory name which doesn't exist |
| 15 | + * 4. EFAULT -- the filename isn't part of the process address space |
| 16 | + * 5. EACCES -- the filename does not have execute permission |
| 17 | + * 6. ENOEXEC -- the file is zero length with execute permissions |
36 | 18 | */ |
37 | 19 |
|
38 | 20 | #define _GNU_SOURCE |
@@ -66,11 +48,8 @@ static struct tcase { |
66 | 48 | {no_dir, ENOENT}, |
67 | 49 | /* the path contains a directory name which doesn't exist - ENOTDIR */ |
68 | 50 | {test_name3, ENOTDIR}, |
69 | | - /* the filename isn't part of the process address space - EFAULT */ |
70 | 51 | {NULL, EFAULT}, |
71 | | - /* the filename does not have execute permission - EACCES */ |
72 | 52 | {test_name5, EACCES}, |
73 | | - /* the file is zero length with execute permissions - ENOEXEC */ |
74 | 53 | {test_name6, ENOEXEC} |
75 | 54 | }; |
76 | 55 |
|
|
0 commit comments