Author: jsrain Date: Tue May 5 14:22:54 2009 New Revision: 57068 URL: http://svn.opensuse.org/viewcvs/yast?rev=57068&view=rev Log: remove all passwords from install.inf in save_y2log (bnc#500130) Modified: trunk/yast2/package/yast2.changes trunk/yast2/scripts/save_y2logs Modified: trunk/yast2/package/yast2.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/package/yast2.changes?rev=57068&r1=57067&r2=57068&view=diff ============================================================================== --- trunk/yast2/package/yast2.changes (original) +++ trunk/yast2/package/yast2.changes Tue May 5 14:22:54 2009 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Tue May 5 14:18:28 CEST 2009 - jsrain@suse.cz + +- remove all passwords from install.inf in save_y2log (bnc#500130) + +------------------------------------------------------------------- Wed Apr 29 09:15:49 CEST 2009 - lslezak@suse.cz - media change popup - display also the URL in the short summary Modified: trunk/yast2/scripts/save_y2logs URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/scripts/save_y2logs?rev=57068&r1=57067&r2=57068&view=diff ============================================================================== --- trunk/yast2/scripts/save_y2logs (original) +++ trunk/yast2/scripts/save_y2logs Tue May 5 14:22:54 2009 @@ -42,7 +42,7 @@ exit 4 esac - +TMPDIR=`mktemp -d` || ( echo "FATAL: Failed to create a temporary directory"; exit 5 ); LIST=YaST2 if [ -f /var/log/evms-engine.log ]; then @@ -54,7 +54,8 @@ fi if [ -f /etc/install.inf ]; then - LIST="$LIST /etc/install.inf" + sed 's/\(^WlanESSID: \|^WlanKey: \|^RootPassword: \|^VNCPassword: \|^Password: \).*$/\1XXXXXX/' $TMPDIR/install.inf + LIST="$LIST $TMPDIR/install.inf" fi if [ -f /etc/X11/xorg.conf ]; then @@ -84,7 +85,7 @@ echo "Saving y2logs to $TARGET" -tar cf "$TARGET" $COMPRESSION --directory=/var/log $LIST && exit 0 +tar cf "$TARGET" $COMPRESSION --directory=/var/log $LIST && rm -rf $TMPDIR && exit 0 echo "FATAL: Error creating archive $TARGET" >&2 exit 2 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org