diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-03 13:07:19 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-11-03 13:07:19 +0000 |
commit | b21263b3339301e8cccbef9fba6b7321cf843fab (patch) | |
tree | 9c005265ea915d777ceebce0403048e2fc4892b3 /main/mkinitfs/0001-mkinitfs-fix-for-running-without-b-option.patch | |
parent | 965684eda7d18177baea0f967d78a6f59eecdaac (diff) | |
download | aports-b21263b3339301e8cccbef9fba6b7321cf843fab.tar.bz2 aports-b21263b3339301e8cccbef9fba6b7321cf843fab.tar.xz |
main/mkinitfs: minor fix
Diffstat (limited to 'main/mkinitfs/0001-mkinitfs-fix-for-running-without-b-option.patch')
-rw-r--r-- | main/mkinitfs/0001-mkinitfs-fix-for-running-without-b-option.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/main/mkinitfs/0001-mkinitfs-fix-for-running-without-b-option.patch b/main/mkinitfs/0001-mkinitfs-fix-for-running-without-b-option.patch new file mode 100644 index 0000000000..2357d2dda3 --- /dev/null +++ b/main/mkinitfs/0001-mkinitfs-fix-for-running-without-b-option.patch @@ -0,0 +1,34 @@ +From 98fb74fadf3dc91a22b6aa11b4351e1a8ea3ef18 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Wed, 3 Nov 2010 13:02:12 +0000 +Subject: [PATCH] mkinitfs: fix for running without -b option + +--- + mkinitfs.in | 4 ++-- + 1 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/mkinitfs.in b/mkinitfs.in +index 8246d07..67981c4 100755 +--- a/mkinitfs.in ++++ b/mkinitfs.in +@@ -16,7 +16,7 @@ _cp() { + local i + if [ -n "$list_sources" ]; then + for i in "$@"; do +- echo "$basedir"/$i ++ echo "$basedir"/"$i" + done + return + fi +@@ -55,7 +55,7 @@ initfs_base() { + done + [ -z "$list_sources" ] && mkdir -p $dirs + +- cd "$basedir" ++ cd "${basedir:-/}" + for file in $(feature_files "$filelists_dir"); do + _cp $file + done +-- +1.7.3.2 + |