Sophie

Sophie

distrib > Mandriva > 2011.0 > i586 > by-pkgid > 37721de9e3ab3d7cdd9ddc3ff4d030fb > files > 1

einit-0.40.0-3mdv2011.0.src.rpm

diff -Naur einit-0.40.0/src/modules/exec.c einit-0.40.0.tpg/src/modules/exec.c
--- einit-0.40.0/src/modules/exec.c	2008-02-25 22:13:55.000000000 +0000
+++ einit-0.40.0.tpg/src/modules/exec.c	2009-01-29 18:38:23.000000000 +0000
@@ -759,7 +759,7 @@
 /* if we're already deactivating this daemon, resume the original function */
   if (pthread_mutex_trylock (&cur->mutex)) {
    esprintf (stmp, BUFFERSIZE, "einit-mod-daemon: \"%s\" has died nicely, resuming.\n", rid);
-   notice (8, stmp);
+   notice (8, "%s", stmp);
    emutex_unlock (&cur->mutex);
   } else if (!shutting_down && (dx->restart)) {
 /* don't try to restart if the daemon died too swiftly */
@@ -783,7 +783,7 @@
    } else {
     dx->cb = NULL;
     esprintf (stmp, BUFFERSIZE, "einit-mod-daemon: \"%s\" has died too swiftly, considering defunct.\n", rid);
-    notice (5, stmp);
+    notice (5, "%s", stmp);
     if (module)
      mod (einit_module_disable, module, NULL);
    }
@@ -791,7 +791,7 @@
    emutex_unlock (&cur->mutex);
    dx->cb = NULL;
    esprintf (stmp, BUFFERSIZE, "einit-mod-daemon: \"%s\" has died, but does not wish to be restarted.\n", rid);
-   notice (5, stmp);
+   notice (5, "%s", stmp);
    if (module)
     mod (einit_module_disable, module, NULL);
   }
diff -Naur einit-0.40.0/src/modules/tty.c einit-0.40.0.tpg/src/modules/tty.c
--- einit-0.40.0/src/modules/tty.c	2008-02-25 22:13:55.000000000 +0000
+++ einit-0.40.0.tpg/src/modules/tty.c	2009-01-29 18:43:22.000000000 +0000
@@ -151,7 +151,7 @@
   if (node->id) {
    char tmp[BUFFERSIZE];
    esprintf (tmp, BUFFERSIZE, "einit-tty: restarting: %s\n", node->id);
-   notice (6, tmp);
+   notice (6, "%s", tmp);
   }
   emutex_lock (&ttys_mutex);
   einit_tty_texec (node);
@@ -196,7 +196,7 @@
    if (lstat (cmds[0], &statbuf)) {
     char cret [BUFFERSIZE];
     esprintf (cret, BUFFERSIZE, "%s: not forking, %s: %s", ( node->id ? node->id : "unknown node" ), cmds[0], strerror (errno));
-    notice (2, cret);
+    notice (2, "%s", cret);
    } else
 #ifdef __linux__
    if ((cpid = syscall(__NR_clone, SIGCHLD, 0, NULL, NULL, NULL)) == 0)