You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Andrew Schwartzmeyer (JIRA)" <ji...@apache.org> on 2017/07/11 21:39:02 UTC

[jira] [Commented] (MESOS-6735) `os::realpath` semantics differ between Windows and POSIX

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

Andrew Schwartzmeyer commented on MESOS-6735:
---------------------------------------------

Commit dd87bd416 updated the Windows implementation to use {{GetFullPathName}} instead of {{_fullpath}}, which also has this problem:

{quote}This function does not verify that the resulting path and file name are valid, or that they see an existing file on the associated volume.
{quote}

> `os::realpath` semantics differ between Windows and POSIX
> ---------------------------------------------------------
>
>                 Key: MESOS-6735
>                 URL: https://issues.apache.org/jira/browse/MESOS-6735
>             Project: Mesos
>          Issue Type: Bug
>          Components: stout
>            Reporter: Alex Clemmer
>            Assignee: John Kordich
>              Labels: stout
>
> `os::realpath` on Unix should error out if the path does not exist. On Windows, the implementation is backed by `_fullpath`, which does not error out if the path does not exist. In general, we'd like the semantics to be as similar as possible across the two.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)