Skip to content

File mode passed to uhyve is given in hex instead of octal. #191

Closed
@jounathaen

Description

@jounathaen

The mode in the open hypercall is passed in hex, but it should be passed as octal. This results in strange permissions of files which are created by uhyve.

https://github.com/hermitcore/libhermit-rs/blob/44eaa9f693566413884f505552f74f2e25863e78/src/syscalls/interfaces/mod.rs#L58-L69

Example: 1991 = 0x777 is passed but it should be 511 = 0o777 instead. The flags field is passed correctly.

@tlambertz pointed out that this has to be fixed in the stdlib

Metadata

Metadata

Assignees

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