[
https://issues.apache.org/jira/browse/TS-4057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045300#comment-15045300
]
ASF subversion and git services commented on TS-4057:
-----------------------------------------------------
Commit 59cb070654a6e6a7acdd6509a770478d413f79a6 in trafficserver's branch
refs/heads/master from [~danobi]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=59cb070 ]
TS-4057: missing check for system call error
EPERM and EACCES are often consfused for each other.
EPERM means "operation not permitted", ie doing this would not be
in your best interest. EACCES means "permission denied", meaning
if you run this command as sudo it will work. Posix specifies that
open(2) returns EACCES.
Opening a log file will _probably_ never be bad, and even if the
system says so, it shouldn't be bad. So in this case it doesn't
hurt to leave both conditions in here.
> Missing check for system call error
> -----------------------------------
>
> Key: TS-4057
> URL: https://issues.apache.org/jira/browse/TS-4057
> Project: Traffic Server
> Issue Type: Bug
> Components: Logging
> Reporter: Daniel Xu
>
> `elevating_open()` doesn't check for EACCES in the failure case of `open()`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)