Accepting request 835782 from home:favogt:fixnobody

- Avoid useless use of cat
- Simplify %sysusers_requires
- Drop shebang, rpm passes it to /bin/sh itself

OBS-URL: https://build.opensuse.org/request/show/835782
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=30
This commit is contained in:
Thorsten Kukuk 2020-09-22 08:24:31 +00:00 committed by Git OBS Bridge
parent 1c0c62a860
commit 73d3e7c0eb
4 changed files with 10 additions and 5 deletions

View File

@ -13,8 +13,7 @@
#
###
# This is for useradd/usermod/groupadd
%sysusers_requires Requires(pre): useradd_or_adduser_dep sysuser-shadow /usr/bin/cat \
%sysusers_requires Requires(pre): sysuser-shadow \
Suggests: shadow
%sysusers_generate_pre() \

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Sep 18 10:32:53 UTC 2020 - Fabian Vogt <fvogt@suse.com>
- Avoid useless use of cat
- Simplify %sysusers_requires
- Drop shebang, rpm passes it to /bin/sh itself
-------------------------------------------------------------------
Fri Aug 21 15:09:13 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>

View File

@ -1,8 +1,6 @@
#!/bin/sh
# pass systemd sysusers config paths as argument to this script.
echo '#!/bin/sh'
echo 'cat <<"EOF" |'
echo '/usr/sbin/sysusers2shadow <<"EOF" || [ -f /.buildenv ]'
grep -he '^[ugmr]' "$@"
echo 'EOF'
echo '/usr/sbin/sysusers2shadow || [ -f /.buildenv ]'

View File

@ -13,6 +13,7 @@ for i in /bin/busybox /usr/bin/busybox; do [ -x "$i" ] && busybox=$i; done
while read LINE
do
# "eval set" to do proper splitting while respecting quotes
eval set -- $LINE
case "${1-}" in
\#*|"")