]> granicus.if.org Git - sudo/commitdiff
Fix some printf format mismatches on error.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 12 Feb 2005 23:46:13 +0000 (23:46 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 12 Feb 2005 23:46:13 +0000 (23:46 +0000)
check.c

diff --git a/check.c b/check.c
index a8f0a1f3551f69f3c9e4db10e54ca1f673727f94..6cff08d7acf865a21b2e8ebd6a9aed8620004d84 100644 (file)
--- a/check.c
+++ b/check.c
@@ -311,7 +311,7 @@ build_timestamp(timestampdir, timestampfile)
     dirparent = def_timestampdir;
     len = easprintf(timestampdir, "%s/%s", dirparent, user_name);
     if (len >= PATH_MAX)
-       log_error(0, "timestamp path too long: %s", timestampdir);
+       log_error(0, "timestamp path too long: %s", *timestampdir);
 
     /*
      * Timestamp file may be a file in the directory or NUL to use
@@ -330,12 +330,12 @@ build_timestamp(timestampdir, timestampfile)
        else
            len = easprintf(timestampfile, "%s/%s/%s", dirparent, user_name, p);
        if (len >= PATH_MAX)
-           log_error(0, "timestamp path too long: %s", timestampfile);
+           log_error(0, "timestamp path too long: %s", *timestampfile);
     } else if (def_targetpw) {
        len = easprintf(timestampfile, "%s/%s/%s", dirparent, user_name,
            *user_runas);
        if (len >= PATH_MAX)
-           log_error(0, "timestamp path too long: %s", timestampfile);
+           log_error(0, "timestamp path too long: %s", *timestampfile);
     } else
        *timestampfile = NULL;
 }
@@ -460,7 +460,7 @@ timestamp_status(timestampdir, timestampfile, user, make_dirs)
                /* If bad uid or file mode, complain and kill the bogus file. */
                if (sb.st_uid != timestamp_uid) {
                    log_error(NO_EXIT,
-                       "%s owned by uid %ud, should be uid %lu",
+                       "%s owned by uid %lu, should be uid %lu",
                        timestampfile, (unsigned long) sb.st_uid,
                        (unsigned long) timestamp_uid);
                    (void) unlink(timestampfile);