[yast-commit] r67361 - in /trunk/core: ./ agent-ini/src/ agent-ini/testsuite/multi/ package/
Author: mvidner Date: Fri Feb 3 16:55:59 2012 New Revision: 67361 URL: http://svn.opensuse.org/viewcvs/yast?rev=67361&view=rev Log: ini-agent: only change permissions of new files (bnc#743355) svn merge -c67360 http://svn.opensuse.org/svn/yast/branches/SuSE-Code-11-SP2-Branch/core Removed: trunk/core/agent-ini/testsuite/multi/private.in.1 Modified: trunk/core/ (props changed) trunk/core/VERSION trunk/core/agent-ini/src/IniParser.cc trunk/core/agent-ini/testsuite/multi/private.err trunk/core/agent-ini/testsuite/multi/private.out trunk/core/package/yast2-core.changes Modified: trunk/core/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/VERSION?rev=67361&r1=67360&r2=67361&view=diff ============================================================================== --- trunk/core/VERSION (original) +++ trunk/core/VERSION Fri Feb 3 16:55:59 2012 @@ -1 +1 @@ -2.22.2 +2.22.3 Modified: trunk/core/agent-ini/src/IniParser.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agent-ini/src/IniParser.cc?rev=67361&r1=67360&r2=67361&view=diff ============================================================================== --- trunk/core/agent-ini/src/IniParser.cc (original) +++ trunk/core/agent-ini/src/IniParser.cc Fri Feb 3 16:55:59 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: trunk/core/agent-ini/testsuite/multi/private.err URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agent-ini/testsuite/multi/private.err?rev=67361&r1=67360&r2=67361&view=diff ============================================================================== --- trunk/core/agent-ini/testsuite/multi/private.err (original) +++ trunk/core/agent-ini/testsuite/multi/private.err Fri Feb 3 16:55:59 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: trunk/core/agent-ini/testsuite/multi/private.out URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/agent-ini/testsuite/multi/private.out?rev=67361&r1=67360&r2=67361&view=diff ============================================================================== --- trunk/core/agent-ini/testsuite/multi/private.out (original) +++ trunk/core/agent-ini/testsuite/multi/private.out Fri Feb 3 16:55:59 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: trunk/core/package/yast2-core.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/core/package/yast2-core.changes?rev=67361&r1=67360&r2=67361&view=diff ============================================================================== --- trunk/core/package/yast2-core.changes (original) +++ trunk/core/package/yast2-core.changes Fri Feb 3 16:55:59 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.22.3 + +------------------------------------------------------------------- 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