diff options
author | Ioan-Adrian Ratiu <adrian.ratiu@ni.com> | 2017-01-23 20:09:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-26 10:44:27 +0000 |
commit | 6805ae0f2aa77b2719f382140c3ad562e767d21b (patch) | |
tree | f2f19bc7a4460433dd27c089cd86f2d397d15a15 /meta/classes/distutils-base.bbclass | |
parent | 95cdd91a802d73b2e2de727535b584e9dce0424d (diff) | |
download | poky-6805ae0f2aa77b2719f382140c3ad562e767d21b.tar.gz |
useradd_base: keep group if it still has users
perform_groupdel() tries to delete a group irrespective if other
users have it as their primary group, thus the call to groupdel will
fail with the following error error:
groupdel: cannot remove the primary group of user '<user>'
Add a check to perform_groupdel() to determine if there are other
users and keep the group, printing a warning. This is called right
after a user is deleted to delete it's group. If the last user is
deleted, only then the group is also deleted.
(From OE-Core rev: bba1f02cb6d80279c6fed34bb18f010aa921fc1e)
Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/distutils-base.bbclass')
0 files changed, 0 insertions, 0 deletions