Skip to content

replaced a call to perror with a combination of printf and strerror - #71

Closed
FuwwyCodingCOwO wants to merge 1 commit into
rrthomas:masterfrom
FuwwyCodingCOwO:master
Closed

FuwwyCodingCOwO wants to merge 1 commit into
rrthomas:masterfrom
FuwwyCodingCOwO:master

Conversation

@FuwwyCodingCOwO

Copy link
Copy Markdown

GNU/Hurd does not define MAXPATHLEN, which was being used to define a buffer that was then passed to perror. I decided that the same functionality could be done by removing the reference to perror by instead calling printf and strerror. This has the effect of removing the need for the buffer using MAXPATHLEN.

@rrthomas

rrthomas commented Sep 4, 2026

Copy link
Copy Markdown
Owner

Thanks for this, a simpler idea than using asprintf. Please avoid repeating the literal error message.

@FuwwyCodingCOwO

Copy link
Copy Markdown
Author

@rrthomas sorry that I keep making multiple pushes, I will finish with that last one

GNU/Hurd does not define MAXPATHLEN, which was being used to define a buffer
that was then passed to perror. I decided that the same functionality could be
done by removing the reference to perror by instead calling printf and strerror.
This has the effect of removing the need for the buffer using MAXPATHLEN.
@rrthomas

rrthomas commented Sep 6, 2026

Copy link
Copy Markdown
Owner

Fixed this by removing paperconf.

@rrthomas rrthomas closed this Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants