Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 66359
Collapse All | Expand All

(-)krb5-1.3.4.orig/src/util/send-pr/send-pr.sh (-7 / +8 lines)
Lines 96-104 Link Here
96
  fi
96
  fi
97
fi
97
fi
98
98
99
TEMP=$TMPDIR/p$$
99
TEMP=`mktemp -t p.XXXXXX` || exit 1
100
BAD=$TMPDIR/pbad$$
100
BAD=`mktemp -t pbad.XXXXXX` || exit 1
101
REF=$TMPDIR/pf$$
101
REF=`mktemp -t pf.XXXXXX` || exit 1
102
102
103
# find a user name
103
# find a user name
104
if [ "$LOGNAME" = "" ]; then
104
if [ "$LOGNAME" = "" ]; then
Lines 122-130 Link Here
122
else
122
else
123
  # Must use temp file due to incompatibilities in quoting behavior
123
  # Must use temp file due to incompatibilities in quoting behavior
124
  # and to protect shell metacharacters in the expansion of $LOGNAME
124
  # and to protect shell metacharacters in the expansion of $LOGNAME
125
  $PASSWD | grep "^$LOGNAME:" | awk -F: '{print $5}' | sed -e 's/,.*//' > $TEMP
125
  TEMP2=`mktemp -t plogname.XXXXXX` || exit 1
126
  ORIGINATOR="`cat $TEMP`"
126
  $PASSWD | grep "^$LOGNAME:" | awk -F: '{print $5}' | sed -e 's/,.*//' > $TEMP2
127
  rm -f $TEMP
127
  ORIGINATOR="`cat $TEMP2`"
128
  rm -f $TEMP2
128
fi
129
fi
129
130
130
if [ -n "$ORGANIZATION" ]; then
131
if [ -n "$ORGANIZATION" ]; then
Lines 280-286 Link Here
280
# Catch some signals. ($xs kludge needed by Sun /bin/sh)
281
# Catch some signals. ($xs kludge needed by Sun /bin/sh)
281
xs=0
282
xs=0
282
trap 'rm -f $REF $TEMP; exit $xs' 0
283
trap 'rm -f $REF $TEMP; exit $xs' 0
283
trap 'echo "$COMMAND: Aborting ..."; rm -f $REF $TEMP; xs=1; exit' 1 2 3 13 15
284
trap 'echo "$COMMAND: Aborting ..."; rm -f "$REF" "$BAD" "$TEMP"; xs=1; exit' 1 2 3 13 15
284
285
285
# If they told us to use a specific file, then do so.
286
# If they told us to use a specific file, then do so.
286
if [ -n "$IN_FILE" ]; then
287
if [ -n "$IN_FILE" ]; then

Return to bug 66359