From alt-linux coreutils-6.12-alt2.patch diff -Naur coreutils-6.12.orig/src/chroot.c coreutils-6.12/src/chroot.c --- coreutils-6.12.orig/src/chroot.c 2008-05-26 06:40:33.000000000 +0000 +++ coreutils-6.12/src/chroot.c 2009-02-08 07:36:47.000000000 +0000 @@ -107,6 +107,10 @@ argv += optind + 1; } + /* These variables are useless inside chroot. ALT#16024 */ + unsetenv("TMP"); + unsetenv("TMPDIR"); + /* Execute the given command. */ execvp (argv[0], argv);