Skip to content

Commit

Permalink
Restore hunk from 2.6.4 that sets default for $TMPDIR
Browse files Browse the repository at this point in the history
Fixes:

    mkdir: cannot create directory '/prepare-kernel-10482': Permission denied
  • Loading branch information
zultron committed May 20, 2015
1 parent 967a587 commit d95a071
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/prepare-kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ fi
# Create an empty output patch file, and initialize the temporary tree.
if test "x$output_patch" != "x"; then

if test -z "$TMPDIR"; then
TMPDIR=/tmp
fi
temp_tree=$TMPDIR/prepare-kernel-$$
if ! mkdir $temp_tree; then
echo Temporary directory $temp_tree already exists, aborting.
Expand Down

0 comments on commit d95a071

Please sign in to comment.