Package: bash
Version: 5.0-2
Severity: wishlist

Dear Maintainer,

To contribute to efford of of making bash non-essential, I propose
following patch, that should resolve issue with login #620898 (in CC).

Please, consider applying.

diff -Nru bash-5.0/debian/bash.prerm bash-5.0/debian/bash.prerm
--- bash-5.0/debian/bash.prerm  2013-10-23 12:41:22.000000000 +0000
+++ bash-5.0/debian/bash.prerm  2019-03-13 17:07:54.000000000 +0000
@@ -9,6 +9,10 @@
        ;;

     remove|deconfigure)
+       remove-shell /bin/bash
+       for user in $(awk -F: '$7 == "/bin/bash" { print $1 }' /etc/passwd) ; do
+               usermod -s /bin/sh "${user}"
+       done
        ;;

     failed-upgrade)
diff -Nru bash-5.0/debian/changelog bash-5.0/debian/changelog
--- bash-5.0/debian/changelog   2019-01-24 10:01:16.000000000 +0000
+++ bash-5.0/debian/changelog   2019-03-13 17:08:11.000000000 +0000
@@ -1,3 +1,9 @@
+bash (5.0-3) UNRELEASED; urgency=medium
+
+  * Set shell of all users, whose shell was /bin/bash to /bin/sh.
+
+ -- Dmitry Bogatov <kact...@debian.org>  Wed, 13 Mar 2019 17:08:11 +0000
+
 bash (5.0-2) unstable; urgency=medium

   * Apply upstream patches 001 and 002. Closes: #919439.

Attachment: pgpDpZ9w7gLA6.pgp
Description: PGP signature

Reply via email to