Репозитории ALT
S: | 1.11.23-alt9 |
5.1: | 1.11.23-alt3.M50P.1 |
4.1: | 1.11.22-alt3 |
4.0: | 1.11.22-alt2 |
+updates: | 1.11.22-alt2 |
3.0: | 1.11.20-alt1 |
Группа :: Разработка/Прочее
Пакет: cvs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: cvs-1.11.10-alt-cvsbug-ypcat.patch
Скачать
Скачать
diff -urk.orig cvs-1.11.10.orig/src/cvsbug.in cvs-1.11.10/src/cvsbug.in
--- cvs-1.11.10.orig/src/cvsbug.in 2003-02-26 00:37:13 +0300
+++ cvs-1.11.10/src/cvsbug.in 2003-12-14 01:15:28 +0300
@@ -103,10 +103,11 @@
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