Skip to content

Commit

Permalink
Merge pull request #10 from kobliha/Code-11-SP2
Browse files Browse the repository at this point in the history
Additional fix for (BNC #765445)
  • Loading branch information
jsuchome committed Jun 25, 2012
2 parents 277a701 + e5d36bb commit 5302bfe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package/yast2-dns-server.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
------------------------------------------------------------------
Wed Jun 20 09:42:53 UTC 2012 - locilka@suse.com

- Additional fix for (BNC #765445). No error reported to stdout
even while writing /etc/named.conf without having bind package
installed.

------------------------------------------------------------------
Tue Jun 5 09:04:05 UTC 2012 - locilka@suse.com

Expand Down
6 changes: 5 additions & 1 deletion src/DnsServer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1322,8 +1322,12 @@ sub Write {
### Bugzilla #46121, Configuration file changed by hand, INI-Agent would break
my $new_configuration_timestamp = $self->GetConfigurationStat();
my $yast2_suffix = ".yast2-save";

# timestamp differs from the Read()
if ($new_configuration_timestamp ne $configuration_timestamp) {
if (defined $configuration_timestamp
and defined $new_configuration_timestamp
and $configuration_timestamp ne $new_configuration_timestamp
) {
y2warning("Stat of the configuration file was changed during the YaST2 configuration");
# moving into yast2-save file
my $ret = SCR->Execute (".target.bash_output", "mv --force ".$configfile." ".$configfile.$yast2_suffix);
Expand Down

0 comments on commit 5302bfe

Please sign in to comment.