summaryrefslogtreecommitdiff
path: root/test/500f9fbadef8-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/500f9fbadef8-test.c')
-rw-r--r--test/500f9fbadef8-test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/500f9fbadef8-test.c b/test/500f9fbadef8-test.c
index 88602ad..b480944 100644
--- a/test/500f9fbadef8-test.c
+++ b/test/500f9fbadef8-test.c
@@ -38,10 +38,9 @@ int main(int argc, char *argv[])
}
sprintf(buf, "./XXXXXX");
- mktemp(buf);
- fd = open(buf, O_WRONLY | O_DIRECT | O_CREAT, 0644);
+ fd = mkostemp(buf, O_WRONLY | O_DIRECT | O_CREAT);
if (fd < 0) {
- perror("mkstemp");
+ perror("mkostemp");
return 1;
}