Debian Release: buster/stable
Package: bash
Version: 5.0-4

Dear Maintainer,
We experience a similar issue which i believe is caused by the same underlying 
issue:
we use a modified .profile which provides logging and at one point calls

exec bash

so upon login the following error is produced:

testhost login: testuser
Password: **********<Enter>
bash: initialize_job_control: no job control in background: Bad file descriptor

Any keypress then takes us back to the login prompt.

Steps to reproduce:
 - for a testuser, modify /home/testuser/.profile to just read

exec bash

   (or rather exec  $(SHELL) if the login shell for testuser is bash)
 - log in as said user from any local tty
 - observe that above error will be logged and any further keypress will close
   the session and take you back to the login prompt

Apparently there already is a fix [1] in upstream (bash-5.0 patchlevel 7).
I build bash from source applying just the patch provided in [1], and the
problem did not occur anymore.

Considering this concerns a rather basic aspect of bash (a built-in and the 
behaviour of job control), it would be nice, if this fix could be applied to 
the package in buster.

Kind regards,
Heiko Brinkmeier

[1] 
https://git.savannah.gnu.org/cgit/bash.git/commit/?id=3ba697465bc74fab513a26dea700cc82e9f4724e

Reply via email to