Report ENOTSUP for Mac xattr files.

Lets me open png files (in Preview) in tree/, at least!
This commit is contained in:
Omar Rizwan 2019-02-27 23:38:12 -08:00
parent 73f8bc754e
commit b18fc10e14

View file

@ -5,6 +5,7 @@ const unix = {
EINTR: 4,
EIO: 5,
ENXIO: 6,
ENOTSUP: 45,
// Unix file types
S_IFMT: 0170000, // type of file mask
@ -118,6 +119,8 @@ const router = {
const tabId = parseInt(pathComponent(path, -3));
const suffix = pathComponent(path, -1);
if (suffix.startsWith("._")) throw new UnixError(unix.ENOTSUP);
if (!debugged[tabId]) throw new UnixError(unix.EIO);
await sendDebuggerCommand(tabId, "Page.enable", {});