summaryrefslogtreecommitdiff
path: root/devel/cvs-devel/files/patch-cvsbug_tmpfix
blob: f5d15ae944039146c15623ffb33970126583c0e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Patch for a tmp race in cvsbug (in the source package; we don't ship
# the script as part of the package). Closes: #325106
diff -Nur src/cvsbug.in src/cvsbug.in
--- src/cvsbug.in	2003-02-26 05:31:33.000000000 +0800
+++ src/cvsbug.in	2006-02-26 22:07:08.000000000 +0800
@@ -109,14 +109,14 @@
     /usr/bin/ypcat passwd 2>/dev/null | cat - /etc/passwd | grep "^$LOGNAME:" |
       cut -f5 -d':' | sed -e 's/,.*//' > $TEMP
     ORIGINATOR="`cat $TEMP`"
-    rm -f $TEMP
+    > $TEMP
   fi
 fi
 
 if [ "$ORIGINATOR" = "" ]; then
   grep "^$LOGNAME:" /etc/passwd | cut -f5 -d':' | sed -e 's/,.*//' > $TEMP
   ORIGINATOR="`cat $TEMP`"
-  rm -f $TEMP
+  > $TEMP
 fi
 
 if [ -n "$ORGANIZATION" ]; then