Module Name:    src
Committed By:   rin
Date:           Mon Aug 28 02:30:14 UTC 2023

Modified Files:
        src/external/gpl3/binutils/dist/libiberty: make-temp-file.c

Log Message:
binutils/libiberty: Restore order of tmp dirs, corrupted during merge

Our preference was/should be /tmp --> /var/tmp --> /usr/tmp:
http://cvsweb.netbsd.org/bsdweb.cgi/src/external/gpl3/binutils/dist/libiberty/make-temp-file.c#rev1.2


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
    src/external/gpl3/binutils/dist/libiberty/make-temp-file.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/libiberty/make-temp-file.c
diff -u src/external/gpl3/binutils/dist/libiberty/make-temp-file.c:1.6 src/external/gpl3/binutils/dist/libiberty/make-temp-file.c:1.7
--- src/external/gpl3/binutils/dist/libiberty/make-temp-file.c:1.6	Sat Dec 24 20:17:08 2022
+++ src/external/gpl3/binutils/dist/libiberty/make-temp-file.c	Mon Aug 28 02:30:13 2023
@@ -143,10 +143,10 @@ choose_tmpdir (void)
 	base = try_dir (P_tmpdir, base);
 #endif
 
-      /* Try /var/tmp, then /usr/tmp, then /tmp.  */
+      /* Try /tmp, /var/tmp, then /usr/tmp.  */
+      base = try_dir (tmp, base);
       base = try_dir (vartmp, base);
       base = try_dir (usrtmp, base);
-      base = try_dir (tmp, base);
       
       /* If all else fails, use the current directory!  */
       if (base == 0)

Reply via email to