ALT Linux repos
S: | 1.11.23-alt9 |
5.0: | 1.11.23-alt1 |
4.1: | 1.11.22-alt3 |
4.0: | 1.11.22-alt2 |
+updates: | 1.11.22-alt2 |
3.0: | 1.11.20-alt1 |
Group :: Development/Other
RPM: cvs
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: cvs-1.11.23-alt-cvsbug-ypcat.patch
Download
Download
--- cvs-1.11.23/src/cvsbug.in
+++ cvs-1.11.23/src/cvsbug.in
@@ -103,10 +103,11 @@ if [ -n "$NAME" ]; then
elif [ -f $HOME/.fullname ]; then
ORIGINATOR="`sed -e '1q' $HOME/.fullname`"
elif [ -f /bin/domainname ]; then
- if [ "`/bin/domainname`" != "" -a -f /usr/bin/ypcat ]; then
+ YPCAT=/usr/bin/ypcat
+ if [ -x "$YPCAT" -a -n "`/bin/domainname`" ]; then
# Must use temp file due to incompatibilities in quoting behavior
# and to protect shell metacharacters in the expansion of $LOGNAME
- /usr/bin/ypcat passwd 2>/dev/null | cat - /etc/passwd | grep "^$LOGNAME:" |
+ "$YPCAT" passwd 2>/dev/null | cat - /etc/passwd | grep "^$LOGNAME:" |
cut -f5 -d':' | sed -e 's/,.*//' > $TEMP
ORIGINATOR="`cat $TEMP`"
rm -f $TEMP