[ 
https://issues.apache.org/jira/browse/TS-1762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13607327#comment-13607327
 ] 

Galen Sampson commented on TS-1762:
-----------------------------------

--- proxy/Main.cc.orig  2013-03-16 00:18:53.518050709 -0700
+++ proxy/Main.cc       2013-03-16 00:19:48.221925918 -0700
@@ -1310,7 +1310,8 @@
 
   char *buf = (char *)ats_malloc(buflen);
 
-  if (0 != geteuid() && 0 == getuid()) seteuid(0); // revert euid if possible.
+  if (0 != geteuid() && 0 == getuid())
+      NOWARN_UNUSED_RETURN(seteuid(0)); // revert euid if possible.
   if (0 != geteuid()) {
     // Not root so can't change user ID. Logging isn't operational yet so
     // we have to write directly to stderr. Perhaps this should be fatal?

                
> Traffic Server 3.2.4 fails to build from source on Arch Linux
> -------------------------------------------------------------
>
>                 Key: TS-1762
>                 URL: https://issues.apache.org/jira/browse/TS-1762
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.2.4
>            Reporter: Galen Sampson
>
> Arch linux uses gcc 4.7 as the default compiler.  A number of return values 
> for seteuid() and setreuid() are ignored, causing things to break.  These 
> issues are already fixed in git commit 75d3566 and commit c9a2e06.  A patch 
> to proxy/Main.cc is also required.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to