[hackers] [skvm] Forgot to log a warning. || Dimitrios Papastamos

From: <hg_AT_suckless.org>
Date: Wed, 13 May 2009 19:45:41 +0000 (UTC)

changeset: 12:749c5d4b4f0e
tag: tip
user: Dimitrios Papastamos <stateless [at] archlinux.us>
date: Wed May 13 20:45:33 2009 -0700
files: skvm.c
description:
Forgot to log a warning.

diff -r 86c788e5d212 -r 749c5d4b4f0e skvm.c
--- a/skvm.c Wed May 13 19:56:07 2009 -0700
+++ b/skvm.c Wed May 13 20:45:33 2009 -0700
@@ -267,7 +267,7 @@
 
    if (pid_fd >= 0)
       if (close(pid_fd) < 0) /* releases lock */
- syslog(LOG_ERR, "%s:%d %s", __FILE__, __LINE__, strerror(errno));
+ syslog(LOG_ERR, "%s:%d: %s", __FILE__, __LINE__, strerror(errno));
    closelog();
 }
 
@@ -337,7 +337,8 @@
          if (!file_exists(mountp)) {
             if (!is_mounted(iter->dev))
                if (do_umount(iter))
- printf("FUCK ME\n");
+ syslog(LOG_WARNING, "%s:%d: %s", __FILE__, __LINE__,
+ strerror(errno));
             if (rmdir(mountp) < 0)
                syslog(LOG_WARNING, "%s:%d: %s", __FILE__, __LINE__,
                       strerror(errno));
@@ -661,11 +662,11 @@
    serrno = errno;
    if (pid_fd != -1)
       if (close(pid_fd) < 0)
- syslog(LOG_ERR, "%s:%d %s", __FILE__, __LINE__,
+ syslog(LOG_ERR, "%s:%d: %s", __FILE__, __LINE__,
                 strerror(errno));
    errno = serrno;
    pid_fd = -1;
- syslog(LOG_ERR, "%s:%d %s", __FILE__, __LINE__,
+ syslog(LOG_ERR, "%s:%d: %s", __FILE__, __LINE__,
           strerror(errno));
    return -1;
 }
Received on Wed May 13 2009 - 19:45:41 UTC

This archive was generated by hypermail 2.2.0 : Wed May 13 2009 - 19:48:04 UTC