| Summary: | Adding custom user account does nothing when the user table text file dose not have a terminating newline | ||
|---|---|---|---|
| Product: | buildroot | Reporter: | Yanghao Cheng <yanghao.cheng> |
| Component: | Other | Assignee: | unassigned |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | buildroot |
| Priority: | P5 | ||
| Version: | 2023.02.2 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Host: | Target: | ||
| Build: | |||
|
Description
Yanghao Cheng
2023-08-30 22:05:27 UTC
> Adding a newline at the end fixes it and works as expected.
Do you mean that the file should end with *two* newline characters?
Note that, in a Unix environment, a text file is by definition a
sequence of LF-terminated lines of text. This implies that a non-empty
file that does not end with an LF character is not a valid text file.
The manual does mention that users tables are “regular text files”. If
the user account creation fails to parse an invalid text file, I would
not consider it a bug.
Okay... I meant only one LF is needed. I've to admit that I don't know the definition exactly although I have seen software that marks non-LF terminated files as questionable. Thank you for letting me know and I will close this ticket. |