summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Mainz <roland.mainz@nrubsig.org>2005-01-24 03:29:12 +0000
committerRoland Mainz <roland.mainz@nrubsig.org>2005-01-24 03:29:12 +0000
commit3211034b329f715732032341d2efbe4e66770b7d (patch)
tree4a345aa7fcffbc5a4bac13c0430d6a8d88d8ed90
parent02205c87b8515d35ffdbae6ae3775905a0255d0d (diff)
//bugs.freedesktop.org/show_bug.cgi?id=2240) attachment #1642
(https://bugs.freedesktop.org/attachment.cgi?id=1642): Fix incorrect usage of /usr/bin/tr in startup script (the used "[\n]" is neither correct or portable, using "\n" seems to be sufficient (this fixes various "random" issues, including including Debian bug #258419 and Debian bug #264983). Patch by Drew Parsons <dparsons@debian.org>.
-rw-r--r--Xprint/etc/init.d/xprint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xprint/etc/init.d/xprint.cpp b/Xprint/etc/init.d/xprint.cpp
index 40ab6fbae..56fae1d2b 100644
--- a/Xprint/etc/init.d/xprint.cpp
+++ b/Xprint/etc/init.d/xprint.cpp
@@ -248,7 +248,7 @@ get_fontlist_from_xfs_config()
tok="${val#*=}"
done
done
- ) | tr "," "[\n]" | fontpath2fontlist
+ ) | tr "," "\n" | fontpath2fontlist
}
get_fontlist_from_all_xfs_configs()
@@ -832,7 +832,7 @@ do_get_xpserverlist()
echo ${display}
fi
)
- done | tr "[\n]" " "
+ done | tr "\n" " "
)
# Only produce output if we have some entries...
[ "${xpserverlist}" != "" ] && echo "${xpserverlist}"