[PATCH] -l should be -L (mk-images)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In scripts/mk-images (line 367), in function instbin(), "-l" is being used (length of a string in INTEGER) rather then -L (file exists and is a symbolic link).

Kind regards,

Jeroen van Meeuwen
>From 8d35c11fa1369a51e8ca57d7eadddef1698bbe1f Mon Sep 17 00:00:00 2001
From: Jeroen van Meeuwen (Fedora Unity) <kanarip@xxxxxxxxxxxxxxx>
Date: Sun, 12 Apr 2009 16:55:28 +0200
Subject: [PATCH] -l should be -L

-l determines the length of a string, we should test whether the file
is a symbolic link (-L or -h)
---
 scripts/mk-images |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index e0dc4ab..22085ce 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -364,7 +364,7 @@ instbin() {
 
     iself="$(file $ROOT/$BIN | grep ELF | grep executable)"
 
-    if [ -l $ROOT/$BIN ]; then
+    if [ -L "$ROOT/$BIN" ]; then
         cp -a $ROOT/$BIN $DIR/$DEST
     else
         if [ -z "$iself" ]; then
-- 
1.6.2.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux