Skip to content

Allocate buffer for getcwd #145

@kurtkilpela

Description

@kurtkilpela

POSIX specifies that calling getcwd w/ a NULL buffer is undefined behavior. Linux and macOS offer an extension to the POSIX behavior of automatically allocating a sufficiently large buffer if the argument is NULL.

Since FileSystemGs is targeting POSIX, it should allocate a sufficiently large buffer.

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