[yast-commit] r67360 - in /branches/SuSE-Code-11-SP2-Branch/core: ./ agent-ini/src/ agent-ini/testsuite/multi/ package/
Author: mvidner Date: Fri Feb 3 15:04:51 2012 New Revision: 67360 URL: http://svn.opensuse.org/viewcvs/yast?rev=67360&view=rev Log: ini-agent: only change permissions of new files (bnc#743355) *quick* adjustment of tests: only test creation, not yet the sssd.conf case of implicit existing private Removed: branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.in.1 Modified: branches/SuSE-Code-11-SP2-Branch/core/VERSION branches/SuSE-Code-11-SP2-Branch/core/agent-ini/src/IniParser.cc branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.err branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.out branches/SuSE-Code-11-SP2-Branch/core/package/yast2-core.changes Modified: branches/SuSE-Code-11-SP2-Branch/core/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/core/VERSION?rev=67360&r1=67359&r2=67360&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/core/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/core/VERSION Fri Feb 3 15:04:51 2012 @@ -1 +1 @@ -2.17.43 +2.17.44 Modified: branches/SuSE-Code-11-SP2-Branch/core/agent-ini/src/IniParser.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/core/agent-ini/src/IniParser.cc?rev=67360&r1=67359&r2=67360&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/core/agent-ini/src/IniParser.cc (original) +++ branches/SuSE-Code-11-SP2-Branch/core/agent-ini/src/IniParser.cc Fri Feb 3 15:04:51 2012 @@ -1000,8 +1000,6 @@ mode_t file_umask = section.isPrivate()? 0077: 0022; mode_t orig_umask = umask(file_umask); - // rewriting an existing file wouldnt change its mode - unlink(filename.c_str()); ofstream of(filename.c_str()); if (!of.good()) { Modified: branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.err URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.err?rev=67360&r1=67359&r2=67360&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.err (original) +++ branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.err Fri Feb 3 15:04:51 2012 @@ -1,11 +1,11 @@ -[agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.1.test to 1 [agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.2.test to 2 +[agent-ini] IniFile.cc(setValue):XXX Write: adding recursively 1 to .v."1"."Totalise"."Password" +[agent-ini] IniFile.cc(setValue):XXX Write: adding recursively Totalise to .v."1"."Totalise"."Password" [agent-ini] IniFile.cc(setMyValue):XXX Adding value .v."1"."Totalise"."Password" = "Secret password" [agent-ini] IniFile.cc(setMyValue):XXX Adding value .v."2"."arcor"."Password" = "Public password" -[agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.1.test to 1 [agent-ini] IniParser.cc(parse):XXX Rewriting multi/private.in.2.test to 2 -[agent-ini] IniParser.cc(getFileName):XXX Rewriting 1 to multi/private.in.1.test [agent-ini] IniParser.cc(getFileName):XXX Rewriting 2 to multi/private.in.2.test +[agent-ini] IniParser.cc(getFileName):XXX Rewriting 1 to multi/private.in.1.test [YCP] multi/private.ycp:XXX secret file mode: $["exit":0, "stderr":"", "stdout":"600\n"] [YCP] multi/private.ycp:XXX public file mode: $["exit":0, "stderr":"", "stdout":"644\n"] [agent-ini] IniParser.cc(write):XXX File multi/private.in.*.test did not change. Not saving. Modified: branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.out URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.out?rev=67360&r1=67359&r2=67360&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.out (original) +++ branches/SuSE-Code-11-SP2-Branch/core/agent-ini/testsuite/multi/private.out Fri Feb 3 15:04:51 2012 @@ -1,16 +1,8 @@ (nil) multi/private.in.1.test ------------------------------- [Dialer Totalise] - Compuserve = 0 - Provider = Totalise - Phone = 08453001470 Password = Secret password [End] - -[Dialer force9] - Provider = Force9 - Phone = 08451424000 -[End] multi/private.in.2.test ------------------------------- [Dialer arcor] Compuserve = 0 Modified: branches/SuSE-Code-11-SP2-Branch/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/core/package/yast2-core.changes?rev=67360&r1=67359&r2=67360&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/core/package/yast2-core.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/core/package/yast2-core.changes Fri Feb 3 15:04:51 2012 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Fri Feb 3 14:36:31 CET 2012 - mvidner@suse.cz + +- ini-agent: only change permissions of new files (bnc#743355) +- 2.17.44 + +------------------------------------------------------------------- Thu Jan 5 15:08:14 CET 2012 - mvidner@suse.cz - Relicensed agent-process from GPL-2.0 to GPL-2.0+ -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
mvidner@svn2.opensuse.org