[crda] setregdomain: use "readlink -f" to cleanup ZONE conversion

John W. Linville linville at fedoraproject.org
Tue Nov 25 21:32:26 UTC 2014


commit 1884bdc2fa806e955f1bf4317b949b5017c7cc30
Author: John W. Linville <linville at tuxdriver.com>
Date:   Tue Nov 18 16:43:20 2014 -0500

    setregdomain: use "readlink -f" to cleanup ZONE conversion
    
    Signed-off-by: John W. Linville <linville at tuxdriver.com>

 setregdomain |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/setregdomain b/setregdomain
index 3e4daf8..ab92a1e 100755
--- a/setregdomain
+++ b/setregdomain
@@ -44,9 +44,8 @@ fi
 
 if [ -f "$LOCALTIME" ]
 then
-	ZONE=$(readlink $LOCALTIME)
+	ZONE=$(readlink -f $LOCALTIME)
 	ZONE=${ZONE#/usr/share/zoneinfo/}
-	ZONE=${ZONE#../usr/share/zoneinfo/}
 else
 	$LOGGER -s "Timezone information not found!  Unable to set regulatory domain."
 	exit 1


More information about the scm-commits mailing list