Annotation of /trunk/groff/patches/groff-1.19.1-tmpfile.patch
Parent Directory | Revision Log
Revision 144 -
(hide annotations)
(download)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 710 byte(s)
Tue May 8 20:06:05 2007 UTC (17 years, 4 months ago) by niro
File size: 710 byte(s)
-import
1 | niro | 144 | --- groff-1.18.1.1.orig/contrib/groffer/groffer.sh |
2 | +++ groff-1.18.1.1/contrib/groffer/groffer.sh | ||
3 | @@ -3228,17 +3228,12 @@ | ||
4 | do | ||
5 | if is_not_empty "$d"; then | ||
6 | if obj d is_dir && obj d is_writable; then | ||
7 | - _TMP_DIR="${d}/${_PROGRAM_NAME}${_PROCESS_ID}"; | ||
8 | - if obj _TMP_DIR is_dir; then | ||
9 | - rm -f "${_TMP_DIR}"/*; | ||
10 | + _TMP_DIR="$(mktemp -d "${d}/${_PROGRAM_NAME}.XXXXXX")" | ||
11 | + if test $? = 0; then | ||
12 | break; | ||
13 | else | ||
14 | - mkdir "${_TMP_DIR}"; | ||
15 | - if obj _TMP_DIR is_not_dir; then | ||
16 | - _TMP_DIR=''; | ||
17 | - continue; | ||
18 | - fi; | ||
19 | - break; | ||
20 | + _TMP_DIR=''; | ||
21 | + continue; | ||
22 | fi; | ||
23 | fi; | ||
24 | if obj _TMP_DIR is_not_writable; then |