diff --git a/util-linux.changes b/util-linux.changes index 272e76c..51ad497 100644 --- a/util-linux.changes +++ b/util-linux.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 9 19:46:41 UTC 2023 - Antonio Teixeira + +- Suppress error messages for grep command where the input file + might not exist (boo#1169835) + ------------------------------------------------------------------- Tue May 9 16:31:55 UTC 2023 - Daniel Garcia diff --git a/util-linux.spec b/util-linux.spec index c6364c0..98fd428 100644 --- a/util-linux.spec +++ b/util-linux.spec @@ -754,7 +754,7 @@ done # Perform one-time config replace. # Applies for: Update from SLE11, online update for SLE15 SP1, Leap15.1. # Not needed for /etc/default/runuser. It was first packaged after the change. -if ! grep -q "^# /etc/default/su is an override" %{_sysconfdir}/default/su ; then +if ! grep -qs "^# /etc/default/su is an override" %{_sysconfdir}/default/su ; then if test -f %{_sysconfdir}/default/su.rpmnew ; then if ! test -f %{_sysconfdir}/default/su.rpmorig ; then cp -a %{_sysconfdir}/default/su %{_sysconfdir}/default/su.rpmorig