| Submitter | Laurentiu Palcu |
|---|---|
| Date | Jan. 17, 2013, 6:21 p.m. |
| Message ID | <1358446869-16665-1-git-send-email-laurentiu.palcu@intel.com> |
| Download | mbox | patch |
| Permalink | /patch/42827/ |
| State | Accepted |
| Commit | 98f17da7ccc1bf79fc5894f90e52769bdbcf89df |
| Headers | show |
Comments
Patch
diff --git a/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch b/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch index 4476e91..6f402dd 100644 --- a/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch +++ b/meta/recipes-core/update-rc.d/update-rc.d/check-if-symlinks-are-valid.patch @@ -24,10 +24,10 @@ Index: git/update-rc.d shift +sn=$initd/$bn -+if [ -L "$sn" -a -n $root ]; then ++if [ -L "$sn" -a -n "$root" ]; then + readlink=$(which readlink) + -+ if [ -n $readlink ]; then ++ if [ -n "$readlink" ]; then + sn=$($readlink "$sn") + case "$sn" in + /*) sn=${root}${sn} ;;
The problem happened because the variables given to -n were not surounded by quotes. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> --- .../update-rc.d/check-if-symlinks-are-valid.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)