X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fstdio%2Ftmpfile.c;h=926d6601d67e067d83bc07149ecd7dd8d4c00939;hb=d1b6fc6ecc59441a37269d6512c5d34d1a2412cd;hp=a6b72236d2463d8edbcd8b1ef5d24ea030818307;hpb=a88edbec15abe3c8e08d5065d8bea399898e757c;p=musl diff --git a/src/stdio/tmpfile.c b/src/stdio/tmpfile.c index a6b72236..926d6601 100644 --- a/src/stdio/tmpfile.c +++ b/src/stdio/tmpfile.c @@ -17,7 +17,7 @@ FILE *tmpfile(void) fd = syscall(SYS_open, s, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600); if (fd >= 0) { f = __fdopen(fd, "w+"); - remove(s); + __syscall(SYS_unlink, s); return f; } }