SVN: geninitrd/trunk/geninitrd
glen
glen at pld-linux.org
Sun Jan 23 23:36:56 CET 2011
Author: glen
Date: Sun Jan 23 23:36:56 2011
New Revision: 12081
Modified:
geninitrd/trunk/geninitrd
Log:
don't leak parentDir variable
Modified: geninitrd/trunk/geninitrd
==============================================================================
--- geninitrd/trunk/geninitrd (original)
+++ geninitrd/trunk/geninitrd Sun Jan 23 23:36:56 2011
@@ -372,7 +372,7 @@
done
local dest=$1
set -- $src
- parentDir=$(dirname $DESTDIR$dest)
+ local parentDir=$(dirname $DESTDIR$dest)
[ ! -d "$parentDir" ] && (debug "+ mkdir -p $parentDir"; mkdir -p $parentDir)
debug "+ cp $* $DESTDIR$dest"
cp -HR "$@" "$DESTDIR$dest"
More information about the pld-cvs-commit
mailing list