diff options
Diffstat (limited to 'io/tst-fchmodat.c')
-rw-r--r-- | io/tst-fchmodat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/io/tst-fchmodat.c b/io/tst-fchmodat.c index 7d4a8717ff..83003e2f21 100644 --- a/io/tst-fchmodat.c +++ b/io/tst-fchmodat.c @@ -8,6 +8,7 @@ #include <unistd.h> #include <sys/stat.h> +#include <support/xunistd.h> static void prepare (void); #define PREPARE(argc, argv) prepare () @@ -98,7 +99,7 @@ do_test (void) puts ("file creation failed"); return 1; } - write (fd, "hello", 5); + xwrite (fd, "hello", 5); puts ("file created"); struct stat64 st1; |