Hello community,

here is the log from the commit of package cronie for openSUSE:Factory
checked in at Wed Jun 15 08:56:36 CEST 2011.



--------
--- cronie/cronie.changes       2011-06-06 10:53:50.000000000 +0200
+++ /mounts/work_src_done/STABLE/cronie/cronie.changes  2011-06-07 
17:18:09.000000000 +0200
@@ -5,2 +5,3 @@
-  manual.
-- Better error report, when ^ tried as an unprivileged user
+  manual
+- to keep compatibility with 11.3, execute the command despite 
+  an unprivileged user tries to disable logging (bnc#698549)

calling whatdependson for head-i586


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cronie.spec ++++++
--- /var/tmp/diff_new_pack.BCYGyb/_old  2011-06-15 08:54:57.000000000 +0200
+++ /var/tmp/diff_new_pack.BCYGyb/_new  2011-06-15 08:54:57.000000000 +0200
@@ -30,7 +30,7 @@
 AutoReqProv:    on
 PreReq:         permissions %fillup_prereq %insserv_prereq cron 
sysvinit(syslog)
 Version:        1.4.7
-Release:        12
+Release:        13
 %{expand: %%define cronie_version %version}
 Summary:        Cron Daemon
 Source0:        %name-%version.tar.gz
@@ -72,7 +72,7 @@
 %package -n cron
 License:        MIT and BSD and GPLv2
 Version:        4.2
-Release:        12
+Release:        13
 Summary:        Auxiliary package
 Group:          System/Daemons
 Requires:       %{name} = %{cronie_version}-%{release}


++++++ cronie-1.4.7-disable_logging.patch ++++++
--- /var/tmp/diff_new_pack.BCYGyb/_old  2011-06-15 08:54:57.000000000 +0200
+++ /var/tmp/diff_new_pack.BCYGyb/_new  2011-06-15 08:54:57.000000000 +0200
@@ -16,12 +16,38 @@
 ===================================================================
 --- cronie-1.4.7.orig/src/entry.c
 +++ cronie-1.4.7/src/entry.c
-@@ -110,7 +110,7 @@ entry *load_entry(FILE * file, void (*er
+@@ -105,13 +105,18 @@ entry *load_entry(FILE * file, void (*er
+       if (ch == '-') {
+       /* if we are editing system crontab or user uid is 0 (root) 
+       * we are allowed to disable logging 
++      * Otherwise log the attempt, but still execute the command.
+       */
+               if (pw == NULL || pw->pw_uid == 0)
                        e->flags |= DONT_LOG;
                else {
-                       log_it("CRON", getpid(), "ERROR", "Only privileged user 
can disable logging", 0);
+-                      log_it("CRON", getpid(), "ERROR", "Only privileged user 
can disable logging", 0);
 -                      ecode = e_option;
-+                      ecode = e_minute;
-                       goto eof;
+-                      goto eof;
++                      log_it("CRON", getpid(), "ERROR",
++                              "Only privileged user can disable logging. "
++                              "In future versions, user lines starting with a 
dash "
++                              "will be treated as invalid and won't get 
executed.", 0);
++                      /* throw an error when editing a crontab */
++                      if (error_func)
++                              (*error_func) (ecodes[(int) e_minute]);
                }
                ch = get_char(file);
+               if (ch == EOF)
+@@ -371,9 +376,9 @@ entry *load_entry(FILE * file, void (*er
+ 
+       Debug(DPARS, ("load_entry()...returning successfully\n"))
+ 
+-              /* success, fini, return pointer to the entry we just created...
+-               */
+-              return (e);
++      /* success, fini, return pointer to the entry we just created...
++       */
++      return (e);
+ 
+   eof:
+       if (e->envp)


++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to