Skip to content

[Bug] Writing to exfat drive on linux #58

Closed
@paulhayes

Description

@paulhayes

What / Why

I'm writing to an external exfat formatted drive on linux. This is a root mounted drive with no permissions system, so everyfile is owned by root, with full rw access to all users. So I have read, write access to the file.

write-file-atomic is trying to set the ownership of the file.
chown: changing ownership of '/media/sandisk/config.json': Operation not permitted

I know that you advice to pass false to the permission option, however this is a 2nd level dependancy, so I'm not actually using this library directly. I'm using
json-future, which has a dependancy for write-json-file, which is using write-file-atomic.

I think if write-file-atomic is just going to set the uid to the existing user, it could catch this error and squash it, as chown failing has no impact.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions