• sbc's avatar
    [NaCl SDK] nacl_io: Always create directory node in http filesystem root. · eed34ebc
    sbc authored
    The root of all filesystems should be a directory node
    except in the special case of blob URL where we maintain
    the legacy behavior of having the mount point be a file
    containing the blob content.
    
    Also, fix the Access() call for http filesystem so that
    it honors the access bits of the node itself.
    
    This fixes an issue in naclports where a mount() of
    an http filsystem followed by a chdir(http_root) would
    always fail with ENOTDIR.
    
    TEST=nacl_io_test
    
    Review URL: https://codereview.chromium.org/547713002
    
    Cr-Commit-Position: refs/heads/master@{#294000}
    eed34ebc
node.h 4.64 KB