You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2016/08/25 09:51:21 UTC
[jira] [Work logged] (TS-4776) O_DIRECTORY is not available on
OmniOS
[ https://issues.apache.org/jira/browse/TS-4776?focusedWorklogId=27115&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-27115 ]
ASF GitHub Bot logged work on TS-4776:
--------------------------------------
Author: ASF GitHub Bot
Created on: 25/Aug/16 09:50
Start Date: 25/Aug/16 09:50
Worklog Time Spent: 10m
Work Description: GitHub user maskit opened a pull request:
https://github.com/apache/trafficserver/pull/921
TS-4776: Emulate the effect of O_DIRECTORY if it is not defined
Emulate the effect of `O_DIRECTORY` with `stat()` if it is not defined. According to man page of `open()`, it returns `ENOTDIR` if the specified pass was not a directory.
> ENOTDIR
> A component used as a directory in pathname is not, in fact, a directory, or O_DIRECTORY was specified and pathname was not a directory.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/maskit/trafficserver ts4776
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafficserver/pull/921.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #921
----
commit e3c127f608675ab07cdda414cac8a5c5367e5608
Author: Masakazu Kitajo <ma...@apache.org>
Date: 2016-08-25T09:34:59Z
TS-4776: Emulate the effect of O_DIRECTORY if it is not defined
----
Issue Time Tracking
-------------------
Worklog Id: (was: 27115)
Time Spent: 10m
Remaining Estimate: 0h
> O_DIRECTORY is not available on OmniOS
> --------------------------------------
>
> Key: TS-4776
> URL: https://issues.apache.org/jira/browse/TS-4776
> Project: Traffic Server
> Issue Type: Bug
> Components: Build
> Reporter: Masakazu Kitajo
> Assignee: Masakazu Kitajo
> Fix For: 7.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {noformat}
> CXX HostDB.o
> In file included from /home/leif/apache/trafficserver.git/iocore/hostdb/HostDB.cc:27:0:
> /home/leif/apache/trafficserver.git/iocore/hostdb/P_RefCountCacheSerializer.h: In member function ‘int RefCountCacheSerializer<C>::finalize_sync()’:
> /home/leif/apache/trafficserver.git/iocore/hostdb/P_RefCountCacheSerializer.h:258:53: error: ‘O_DIRECTORY’ was not declared in this scope
> dirfd = socketManager.open(this->dirname.c_str(), O_DIRECTORY);
> ^
> Makefile:969: recipe for target 'HostDB.o' failed
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)