Skip to content

Chown not conform to glibc's chown #31673

Closed
@MYDIH

Description

@MYDIH
  • Version: v12.4.0
  • Platform: Linux 5.5.2-arch1-1#1 SMP PREEMPT Tue, 04 Feb 2020 18:56:18 +0000 x86_64 GNU/Linux
  • Subsystem: fs

Hi,

When using fs.chown, I can't find a way to change only one of the two ids. It seems node isn't actually conforming to the glibc call linked in the documentation. When passing -1 (which according to chown should result in a noop for this id), I get an error :

The value of "uid" is out of range. It must be >= 0 && < 4294967296. Received -1

Is there a way to specify only one of the two ids ? If yes, can I kindly suggest that it should be added to the docs ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.fsIssues and PRs related to the fs subsystem / file system.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions