[coreutils] Fix tmp file location in colorls scripts (#948008)

Ondrej Oprala ooprala at fedoraproject.org
Fri Apr 5 11:06:28 UTC 2013


commit 7bbf86f2feee429d3b7a6d94569a7b9b0c2595f2
Author: Ondrej Oprala <ooprala at redhat.com>
Date:   Fri Apr 5 13:02:14 2013 +0200

    Fix tmp file location in colorls scripts (#948008)

 coreutils-colorls.csh |    2 +-
 coreutils-colorls.sh  |    2 +-
 coreutils.spec        |    5 ++++-
 3 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/coreutils-colorls.csh b/coreutils-colorls.csh
index 8c5b993..5a54e45 100755
--- a/coreutils-colorls.csh
+++ b/coreutils-colorls.csh
@@ -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
diff --git a/coreutils-colorls.sh b/coreutils-colorls.sh
index f354698..5347b2a 100755
--- a/coreutils-colorls.sh
+++ b/coreutils-colorls.sh
@@ -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
diff --git a/coreutils.spec b/coreutils.spec
index a62ccab..48b39f5 100644
--- a/coreutils.spec
+++ b/coreutils.spec
@@ -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 at redhat.com 8.21-11
+- Fix tmp file location in colorls scripts (#948008)
+
 * Thu Mar 14 2013 Ondrej Vasik <ovasik at redhat.com> 8.21-10
 - DIR_COLORS.$TERM should have higher priority than
   DIR_COLORS.256color (#921651)


More information about the scm-commits mailing list