Fix tmp file location in colorls scripts (#948008)

This commit is contained in:
Ondrej Oprala 2013-04-05 13:02:14 +02:00
parent c7a1b74c04
commit 7bbf86f2fe
3 changed files with 6 additions and 3 deletions

View File

@ -10,7 +10,7 @@ endif
alias ll 'ls -l'
alias l. 'ls -d .*'
set COLORS=/etc/DIR_COLORS
set TMP="`mktemp .colorlsXXX`"
set TMP="`mktemp .colorlsXXX --tmpdir=/tmp`"
if ($?TERM) then
if ( -e "/etc/DIR_COLORS.256color" ) then

View File

@ -12,7 +12,7 @@ if [ -z "$USER_LS_COLORS" ]; then
INCLUDE=
COLORS=
TMP="`mktemp .colorlsXXX`"
TMP="`mktemp .colorlsXXX --tmpdir=/tmp`"
for colors in "$HOME/.dir_colors.$TERM" "$HOME/.dircolors.$TERM" \
"$HOME/.dir_colors" "$HOME/.dircolors"; do

View File

@ -1,7 +1,7 @@
Summary: A set of basic GNU tools commonly used in shell scripts
Name: coreutils
Version: 8.21
Release: 10%{?dist}
Release: 11%{?dist}
License: GPLv3+
Group: System Environment/Base
Url: http://www.gnu.org/software/coreutils/
@ -375,6 +375,9 @@ fi
%{_sbindir}/chroot
%changelog
* Fri Apr 05 2013 Ondrej Oprala <ooprala@redhat.com 8.21-11
- Fix tmp file location in colorls scripts (#948008)
* Thu Mar 14 2013 Ondrej Vasik <ovasik@redhat.com> 8.21-10
- DIR_COLORS.$TERM should have higher priority than
DIR_COLORS.256color (#921651)