verify that ttyname refers to the same file as the fd
[musl] / src / unistd / fdatasync.c
index dd4d41c..3895ae5 100644 (file)
@@ -3,5 +3,5 @@
 
 int fdatasync(int fd)
 {
-       return syscall(SYS_fdatasync, fd);
+       return syscall_cp(SYS_fdatasync, fd);
 }