2
0
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:
Ryan Lee 2025-07-30 16:35:01 -07:00
parent 37185f50a4
commit 73bcf488b2

View File

@ -7,7 +7,7 @@
int main(int argc, char **argv) {
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;
}
int tmpfile_fd = open(argv[1], O_TMPFILE | O_WRONLY, S_IRUSR | S_IWUSR);