[yast-commit] r56842 - /trunk/storage/libstorage/src/EtcFstab.cc
Author: aschnell Date: Mon Apr 20 11:16:37 2009 New Revision: 56842 URL: http://svn.opensuse.org/viewcvs/yast?rev=56842&view=rev Log: - use AsciiFile to log file content Modified: trunk/storage/libstorage/src/EtcFstab.cc Modified: trunk/storage/libstorage/src/EtcFstab.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/EtcFstab.cc?rev=56842&r1=56841&r2=56842&view=diff ============================================================================== --- trunk/storage/libstorage/src/EtcFstab.cc (original) +++ trunk/storage/libstorage/src/EtcFstab.cc Mon Apr 20 11:16:37 2009 @@ -648,21 +648,6 @@ return( line ); } -static void printFile( const string& fname ) - { - y2mil( "name:" << fname ); - ifstream file( fname.c_str() ); - classic(file); - string line; - int count = 1; - getline( file, line ); - while( file.good() ) - { - y2mil( "line:" << count++ << " \"" << line << "\"" ); - getline( file, line ); - } - file.close(); - } int EtcFstab::flush() { @@ -801,9 +786,9 @@ { crypttab.save(); } - printFile( prefix + "/fstab" ); - printFile( prefix + "/cryptotab" ); - printFile( prefix + "/crypttab" ); + AsciiFile(prefix + "/fstab").logContent(); + AsciiFile(prefix + "/cryptotab").logContent(); + AsciiFile(prefix + "/crypttab").logContent(); y2mil("ret:" << ret); return( ret ); } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org