[Buildroot] [Bug 15745] Adding custom user account does nothing when the user table text file dose not have a terminating newline

bugzilla at busybox.net bugzilla at busybox.net
Thu Aug 31 07:24:02 UTC 2023


https://bugs.busybox.net/show_bug.cgi?id=15745

--- Comment #1 from Edgar Bonet <bonet at grenoble.cnrs.fr> ---
> 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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the buildroot mailing list