diff options
author | Nick Clifton <nickc@redhat.com> | 2021-07-03 14:00:33 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2021-07-03 14:00:33 +0100 |
commit | 20c4b12e937b20f0998bd25ad37c77145650e826 (patch) | |
tree | bcc05850ae7ed90cedb0368ab7f8b3a88a703500 /libiberty/make-temp-file.c | |
parent | 0d03c52682bec990371b2f006e186641cf86f923 (diff) | |
download | binutils-gdb-20c4b12e937b20f0998bd25ad37c77145650e826.tar.gz |
Synchronize libiberty sources (and include/demangle.h) with GCC master version
Diffstat (limited to 'libiberty/make-temp-file.c')
-rw-r--r-- | libiberty/make-temp-file.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libiberty/make-temp-file.c b/libiberty/make-temp-file.c index 7465cec5ea6..31f87fbcfde 100644 --- a/libiberty/make-temp-file.c +++ b/libiberty/make-temp-file.c @@ -81,8 +81,6 @@ try_dir (const char *dir, const char *base) } static const char tmp[] = { DIR_SEPARATOR, 't', 'm', 'p', 0 }; -static const char usrtmp[] = -{ DIR_SEPARATOR, 'u', 's', 'r', DIR_SEPARATOR, 't', 'm', 'p', 0 }; static const char vartmp[] = { DIR_SEPARATOR, 'v', 'a', 'r', DIR_SEPARATOR, 't', 'm', 'p', 0 }; @@ -129,9 +127,8 @@ choose_tmpdir (void) base = try_dir (P_tmpdir, base); #endif - /* Try /var/tmp, /usr/tmp, then /tmp. */ + /* Try /var/tmp, then /tmp. */ base = try_dir (vartmp, base); - base = try_dir (usrtmp, base); base = try_dir (tmp, base); /* If all else fails, use the current directory! */ |