aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man2/open.22
1 files changed, 1 insertions, 1 deletions
diff --git a/man2/open.2 b/man2/open.2
index a6856cffdb..002ad41317 100644
--- a/man2/open.2
+++ b/man2/open.2
@@ -583,7 +583,7 @@ fd = open("/path/to/dir", O_TMPFILE | O_RDWR,
/* File I/O on 'fd'... */
snprintf(path, PATH_MAX, "/proc/self/fd/%d", fd);
-linkat(AT_FDCWD, path, AT_FDCWD, argv[2],
+linkat(AT_FDCWD, path, AT_FDCWD, "/path/for/file",
AT_SYMLINK_FOLLOW);
.fi
.in