From aad8d7d4968f672643e5ea517f59ae9ca724aef9 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 27 Feb 2011 09:46:32 -0600 Subject: [PATCH] usr/bin/byobu-janitor: use readlink, much more graceful --- debian/changelog | 1 + usr/bin/byobu-janitor | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 89b16f24..569f9a70 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,6 +7,7 @@ byobu (3.29) unreleased; urgency=low the default wireless interface, LP: #723260 * usr/share/man/man1/byobu.1: document TERM=vt100 for Mac keyboard users, LP: #482623 + * usr/bin/byobu-janitor: use readlink, much more graceful [ Chow Loong Jin and Dustin Kirkland ] * usr/lib/byobu/disk_io: canonicalize symlinks so that disk_io works diff --git a/usr/bin/byobu-janitor b/usr/bin/byobu-janitor index bc4592f9..417dcf0c 100755 --- a/usr/bin/byobu-janitor +++ b/usr/bin/byobu-janitor @@ -65,8 +65,8 @@ fi # Affects: Symlinks pointing to color profiles if [ -h "$PROFILE" ]; then - case "$(stat $PROFILE)" in - *File:*-\>*$BYOBU_PREFIX/share/byobu/profiles/*) + case "$(readlink -f $PROFILE)" in + $BYOBU_PREFIX/share/byobu/profiles/*) # Set default colors BG=W FG=k