- log also uids of the .curlrc owner and process
authorJan Kupec <jkupec@suse.cz>
Mon, 13 Oct 2008 13:53:27 +0000 (13:53 +0000)
committerJan Kupec <jkupec@suse.cz>
Mon, 13 Oct 2008 13:53:27 +0000 (13:53 +0000)
zypp/media/CurlConfig.cc

index 6eca9b0..f6dd4c3 100644 (file)
@@ -45,8 +45,12 @@ namespace zypp
     }
     else
     {
+      char buf[256] = {NULL};
       WAR << "Not allowed to parse '" << curlrcFile
-          << "': owner is not root" << std::endl;
+          << "': dir/file owner: " << h_info.owner() << "/" << c_info.owner()
+          << ", process uid: " << getuid()
+          << " (" << (!getlogin_r(buf, 31) ? buf : "") << ")" << std::endl;
+
       return 1;
     }