[pkg-cryptsetup-devel] cryptdisks_start

pat pat at babar.homelinux.net
Fri Jun 18 12:45:03 UTC 2010


Hi all

i ran into trouble with cryptdisks_start

these changes get me out of trouble when redirecting it's output (for
logging purposes)

hope you agree that the current behavior of using stdout as stdin is
wrong ?

--- /./usr/sbin/cryptdisks_start.distrib	2010-03-30 01:19:36.000000000
+0200
+++ /./usr/sbin/cryptdisks_start	2010-06-18 14:38:38.112994530 +0200
@@ -29,6 +29,8 @@
 
 count=0
 tablen="$(egrep -v "^[[:space:]]*(#|$)" "$TABFILE" | /usr/bin/wc -l)"
+
+exec 3<&0
 egrep -v "^[[:space:]]*(#|$)" "$TABFILE" | while read dst src key opts;
do
 	count=$(( $count + 1 ))
 	if [ "$1" = "$dst" ]; then
@@ -43,4 +45,4 @@
 	umount_fs
 	log_action_end_msg $ret
 	exit $ret
-done 3<&1
+done 




More information about the pkg-cryptsetup-devel mailing list