You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2011/07/15 17:07:29 UTC

svn commit: r1147182 - /trafficserver/traffic/trunk/cop/TrafficCop.cc

Author: amc
Date: Fri Jul 15 15:07:29 2011
New Revision: 1147182

URL: http://svn.apache.org/viewvc?rev=1147182&view=rev
Log:
Additional tweak for TS-881 as suggested by reviewer jMCg

Modified:
    trafficserver/traffic/trunk/cop/TrafficCop.cc

Modified: trafficserver/traffic/trunk/cop/TrafficCop.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/cop/TrafficCop.cc?rev=1147182&r1=1147181&r2=1147182&view=diff
==============================================================================
--- trafficserver/traffic/trunk/cop/TrafficCop.cc (original)
+++ trafficserver/traffic/trunk/cop/TrafficCop.cc Fri Jul 15 15:07:29 2011
@@ -191,7 +191,10 @@ chown_file_to_user(const char *file, con
 
     if (pwd) {
       if (chown(file, pwd->pw_uid, pwd->pw_gid) < 0) {
-        //cop_log(COP_FATAL, "cop couldn't chown the  file: %s\n", file);
+        cop_log(
+	  COP_FATAL, "cop couldn't chown the  file: '%s' [%d] %s\n",
+	  file, errno, strerror(errno)
+	);
       }
     } else {
       cop_log(COP_FATAL, "can't get passwd entry for the admin user '%s' - [%d] %s\n", user, errno, strerror(errno));