From: bugzilla@busybox.net
To: buildroot@uclibc.org
Subject: [Buildroot] [Bug 15745] New: Adding custom user account does nothing when the user table text file dose not have a terminating newline
Date: Wed, 30 Aug 2023 22:05:27 +0000 [thread overview]
Message-ID: <bug-15745-163@https.bugs.busybox.net/> (raw)
https://bugs.busybox.net/show_bug.cgi?id=15745
Bug ID: 15745
Summary: Adding custom user account does nothing when the user
table text file dose not have a terminating newline
Product: buildroot
Version: 2023.02.2
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned@buildroot.uclibc.org
Reporter: yanghao.cheng@aioi-atg.com
CC: buildroot@uclibc.org
Target Milestone: ---
As title
For example,
```text @ package/bar/users_table.txt
foo -2 foo -2 =foo /home/foo /bin/bash - Foo user
```
When configure buildroot to use this user table according to the manual, log
shows that the content is being copied to the master user table:
_________________________________________________________________________
> cat package/bar/users_table.txt >> /home/yanghao/open-source/buildroot/buildroot/output/build/buildroot-fs/full_users_table.txt
>
> /yanghao/open-source/buildroot/buildroot/support/scripts/mkusers /home/yanghao/open-source/buildroot/buildroot/output/build/buildroot-fs/full_users_table.txt /home/yanghao/open-source/buildroot/buildroot/output/build/buildroot-fs/ext2/target >> /home/yanghao/open-source/buildroot/buildroot/output/build/buildroot-fs/ext2/fakeroot
__________________________________________________________________________
However, no user is created in the resulting filesystem.
Adding a newline at the end fixes it and works as expected.
```text
foo -2 foo -2 =foo /home/foo /bin/bash - Foo user
```
In the end, I think this is a bug because it is not mentioned in the manual
Chapter 26. Makeusers syntax documentation and 9.6. Adding custom user
accounts.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2023-08-30 22:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-08-30 22:05 bugzilla [this message]
2023-08-31 7:24 ` [Buildroot] [Bug 15745] Adding custom user account does nothing when the user table text file dose not have a terminating newline bugzilla
2023-08-31 17:48 ` bugzilla
2023-08-31 17:49 ` bugzilla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-15745-163@https.bugs.busybox.net/ \
--to=bugzilla@busybox.net \
--cc=buildroot@uclibc.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox