Author: mzugec Date: Mon Apr 14 22:08:48 2008 New Revision: 46626 URL: http://svn.opensuse.org/viewcvs/yast?rev=46626&view=rev Log: check checksums from configuration files (FaTE#303374) Modified: trunk/http-server/VERSION trunk/http-server/package/yast2-http-server.changes trunk/http-server/src/HttpServer.ycp Modified: trunk/http-server/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/http-server/VERSION?rev=46626&r1=46625&r2=46626&view=diff ============================================================================== --- trunk/http-server/VERSION (original) +++ trunk/http-server/VERSION Mon Apr 14 22:08:48 2008 @@ -1 +1 @@ -2.16.5 +2.16.6 Modified: trunk/http-server/package/yast2-http-server.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/http-server/package/yast2-http-server.changes?rev=46626&r1=46625&r2=46626&view=diff ============================================================================== --- trunk/http-server/package/yast2-http-server.changes (original) +++ trunk/http-server/package/yast2-http-server.changes Mon Apr 14 22:08:48 2008 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Apr 3 01:20:12 CEST 2008 - mzugec@suse.de + +- check checksums from configuration files (FaTE#303374) +- 2.16.6 + +------------------------------------------------------------------- Tue Apr 1 09:57:06 CEST 2008 - jsrain@suse.cz - merged texts from proofread Modified: trunk/http-server/src/HttpServer.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/http-server/src/HttpServer.ycp?rev=46626&r1=46625&r2=46626&view=diff ============================================================================== --- trunk/http-server/src/HttpServer.ycp (original) +++ trunk/http-server/src/HttpServer.ycp Mon Apr 14 22:08:48 2008 @@ -31,6 +31,7 @@ import "SuSEFirewall"; import "Confirm"; import "SuSEFirewallServices"; +import "FileChanges"; /** * Abort function @@ -83,7 +84,7 @@ return firewall; } - +list<string> files_to_check = ["/etc/sysconfig/apache2", "/etc/apache2/default-server.conf", "/etc/apache2/httpd.conf", "/etc/apache2/listen.conf", "/etc/apache2/vhosts.d/yast2_vhosts.conf"]; /** * Read all http-server settings @@ -205,6 +206,8 @@ YaST::HTTPDData::ReadModules(); YaST::HTTPDData::ReadService(); + if (!FileChanges::CheckFiles( files_to_check )) return false; + // check the modules RPMs list<string> modules = YaST::HTTPDData::GetModuleList(); y2milestone ("Testing packages for %1", modules); @@ -430,7 +433,10 @@ } } -SCR::Write ( .target.string, Directory::vardir + "/http_server", ""); + foreach(string file, files_to_check, { + FileChanges::StoreFileCheckSum( file ); + }); + SCR::Write ( .target.string, Directory::vardir + "/http_server", ""); // translators: progress finished ProgressNextStage(_("Finished")); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org