mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 10:07:12 +00:00
regression: fix usage statement for linkat_tmpfile
Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
parent
37185f50a4
commit
73bcf488b2
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
if (argc != 2 && argc != 3) {
|
if (argc != 2 && argc != 3) {
|
||||||
fprintf(stderr, "FAIL: Usage: linkat tmpdir final_location\n");
|
fprintf(stderr, "FAIL: Usage: linkat_tmpfile tmpdir [final_location]\n");
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
int tmpfile_fd = open(argv[1], O_TMPFILE | O_WRONLY, S_IRUSR | S_IWUSR);
|
int tmpfile_fd = open(argv[1], O_TMPFILE | O_WRONLY, S_IRUSR | S_IWUSR);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user