no graceful handling of empty fork command

Bug #230745 reported by Chris Jones
2
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Critical
Chris Jones
terminator (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If, for whatever reason, the command we wish to fork turns out to be "" (e.g. they have a custom command enabled, but not configured, or their user is just plain broken), we will merrily try to fork '', which obviously fails.
One user already has appeared who has an empty system shell (!!!!).
We should try and fallback gracefully to bash and then sh

Revision history for this message
Chris Jones (cmsj) wrote :

per passwd(5), the command interpreter field of gecos is optional, so we absolutely must handle this, although they recommend immediately falling back to sh.

Changed in terminator:
importance: Undecided → Critical
milestone: none → 1.0-beta
status: New → Confirmed
status: New → Confirmed
Revision history for this message
Chris Jones (cmsj) wrote :

This is fixed by commit 253, with a bonus commit (254) to bail out when a shell fails to spawn.. Bailing out the whole program is probably a bad idea though, so this might want to be reverted/changed in future.

Changed in terminator:
assignee: nobody → cmsj
status: Confirmed → Fix Committed
Revision history for this message
Chris Jones (cmsj) wrote :

commit 255 solves the failing situation properly - instead of exiting the entire application, just the terminal that failed to spawn a shell will close.

Chris Jones (cmsj)
Changed in terminator:
status: Confirmed → Fix Committed
Chris Jones (cmsj)
Changed in terminator:
status: Fix Committed → Fix Released
Chris Jones (cmsj)
Changed in terminator (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.