From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 26 Apr 2011 16:48:56 +0000 (+0000)
Subject: When a specified user or group can't be found, put the name in single-quotes when... 
X-Git-Tag: v_3_0_18~252
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/developer-manual/@default-cgi@toggle?a=commitdiff_plain;h=7726b37a51a3b1e0725c6c7e7b549569a0b30f26;p=privoxy.git

When a specified user or group can't be found, put the name in single-quotes when logging it.
---

diff --git a/jcc.c b/jcc.c
index 9dfe3649..be1840f3 100644
--- a/jcc.c
+++ b/jcc.c
@@ -1,4 +1,4 @@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.345 2011/04/19 13:00:47 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.346 2011/04/26 16:48:04 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@ -2955,13 +2955,13 @@ int main(int argc, char **argv)
             *p++ = '\0';
             if (NULL == (grp = getgrnam(p)))
             {
-               log_error(LOG_LEVEL_FATAL, "Group %s not found.", p);
+               log_error(LOG_LEVEL_FATAL, "Group '%s' not found.", p);
             }
          }
 
          if (NULL == (pw = getpwnam(argv[argc_pos])))
          {
-            log_error(LOG_LEVEL_FATAL, "User %s not found.", argv[argc_pos]);
+            log_error(LOG_LEVEL_FATAL, "User '%s' not found.", argv[argc_pos]);
          }
 
          if (p != NULL) *--p = '\0';