[Pkg-citadel-commit] r135 - citadel/trunk/debian/patches

dothebart-guest at alioth.debian.org dothebart-guest at alioth.debian.org
Tue Aug 26 06:34:08 UTC 2008


Author: dothebart-guest
Date: 2008-08-26 06:34:07 +0000 (Tue, 26 Aug 2008)
New Revision: 135

Added:
   citadel/trunk/debian/patches/r6529_no_tmp_files_migrate_aliases.sh.diff
Log:
* added missing file, sorry for inconvenience.


Added: citadel/trunk/debian/patches/r6529_no_tmp_files_migrate_aliases.sh.diff
===================================================================
--- citadel/trunk/debian/patches/r6529_no_tmp_files_migrate_aliases.sh.diff	                        (rev 0)
+++ citadel/trunk/debian/patches/r6529_no_tmp_files_migrate_aliases.sh.diff	2008-08-26 06:34:07 UTC (rev 135)
@@ -0,0 +1,34 @@
+Index: migrate_aliases.sh
+===================================================================
+--- migrate_aliases.sh	(revision 6528)
++++ migrate_aliases.sh	(revision 6529)
+@@ -6,18 +6,24 @@
+ 
+ CITALIAS=$1
+ if test -f /etc/aliases; then
+-    cat /etc/aliases | \
++# don't work with temp fils, so they can't get hijacked.
++# sorry users with megabytes of aliases.
++    NLINES=`cat /etc/aliases | \
+ 	sed -e "s; *;;g" \
+             -e "s;\t*;;g" | \
+ 	grep -v ^root: | \
+ 	grep -v ^# | \
+ 	sed -e "s;:root;,room_aide;" \
+-            -e "s;:;,;" >/tmp/aliases
+-
+-    NLINES=`cat /tmp/aliases|wc -l`
++            -e "s;:;,;" |wc -l`
+     
+     for ((i=1; i <= $NLINES; i++)); do 
+-	ALIAS=`head -n $i /tmp/aliases |tail -n 1`
++	ALIAS=`    cat /etc/aliases | \
++	sed -e "s; *;;g" \
++            -e "s;\t*;;g" | \
++	grep -v ^root: | \
++	grep -v ^# | \
++	sed -e "s;:root;,room_aide;" \
++            -e "s;:;,;" |head -n $i |tail -n 1`
+ 	ORG=`echo $ALIAS|sed "s;,.*;;"`
+ 	if grep "$ORG" "$CITALIAS"; then
+ 	    echo "Ignoring Alias $ORG as its already there"




More information about the Pkg-citadel-commit mailing list