trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1147182 - /trafficserver/traffic/trunk/cop/TrafficCop.cc
Date Fri, 15 Jul 2011 15:07:29 GMT
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));



Mime
View raw message