diff options
Diffstat (limited to 'usr.bin/window/wwterminfo.c')
-rw-r--r-- | usr.bin/window/wwterminfo.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/window/wwterminfo.c b/usr.bin/window/wwterminfo.c index ed60f3b..496cd51 100644 --- a/usr.bin/window/wwterminfo.c +++ b/usr.bin/window/wwterminfo.c @@ -64,8 +64,7 @@ wwterminfoinit() /* make the directory */ (void) sprintf(wwterminfopath, "%swwinXXXXXX", _PATH_TMP); - mktemp(wwterminfopath); - if (mkdir(wwterminfopath, 0755) < 0 || + if (mkdtemp(wwterminfopath) < 0 || chmod(wwterminfopath, 00755) < 0) { wwerrno = WWE_SYS; return -1; |