diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2000-04-30 21:33:18 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2000-04-30 21:33:18 +0000 |
commit | 124451034d49834b21789b29ad00955c783b18f5 (patch) | |
tree | 2d718c905d5afb66d3965556b547887916ed0db2 /gnu/usr.bin/lynx | |
parent | 7c27e331bc63f7e359794be3b0747ec0d797cd68 (diff) |
code missed when upgraded to 2.8.2. -moj
Diffstat (limited to 'gnu/usr.bin/lynx')
-rw-r--r-- | gnu/usr.bin/lynx/src/LYClean.c | 4 | ||||
-rw-r--r-- | gnu/usr.bin/lynx/src/LYMain.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gnu/usr.bin/lynx/src/LYClean.c b/gnu/usr.bin/lynx/src/LYClean.c index 34961766ba0..82714231530 100644 --- a/gnu/usr.bin/lynx/src/LYClean.c +++ b/gnu/usr.bin/lynx/src/LYClean.c @@ -138,6 +138,10 @@ PUBLIC void cleanup_sig ARGS1( PUBLIC void cleanup_files NOARGS { LYCleanupTemp(); + + if (rmdir(lynx_temp_space)) + perror("Could not remove the temp-directory"); + FREE(lynx_temp_space); } diff --git a/gnu/usr.bin/lynx/src/LYMain.c b/gnu/usr.bin/lynx/src/LYMain.c index 9f1f717e83a..abfb2f3520d 100644 --- a/gnu/usr.bin/lynx/src/LYMain.c +++ b/gnu/usr.bin/lynx/src/LYMain.c @@ -861,6 +861,8 @@ PUBLIC int main ARGS2( FREE(temp); } } + StrAllocCat(lynx_temp_space, "/lynx-XXXXXX"); + lynx_temp_space = mkdtemp(lynx_temp_space); #ifdef VMS LYLowerCase(lynx_temp_space); if (strchr(lynx_temp_space, '/') != NULL) { |