Invisible symbols in sssd upstart config causes sssd to not start if /bin/sh is a link to /bin/bash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sssd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Timo Aaltonen |
Bug Description
[Impact]
prevents the daemon from starting when /bin/sh is bash
[Test case]
change /bin/sh to point to bash, run 'start sssd'
[Regression potential]
small, it's an obvious packaging bug
--
This problem appeared when I changed /bin/sh link to /bin/bash. Somehow dash tolerates this bug described below.
When trying to start sssd I've got:
root@ubuntu-
start: Job failed to start
The only trace in syslog was:
May 24 11:11:59 ubuntu-precise kernel: [66576.880595] init: sssd pre-start process (9782) terminated with status 2
I've took a look on /etc/init/sssd.conf and everything looks ok, but after some play I make it to start, and this is the difference to the original:
root@ubuntu-
19c19
< test -f /etc/sssd/sssd.conf || { stop; exit 0; }
---
> test -f /etc/sssd/sssd.conf || { stop; exit 0; }
This looks bizzare for me, so I tried that:
root@ubuntu-
^Itest -f /etc/sssd/sssd.conf || { stop; exit 0; }$
root@ubuntu-
^Itest -f /etc/sssd/sssd.conf ||M-BM- { stop; exit 0; }$
root@ubuntu-
I have no idea what does "M-BM-" stand for, but I'm sure this is not how it should be.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: sssd 1.8.2-0ubuntu1
ProcVersionSign
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu7
Architecture: amd64
Date: Thu May 24 11:02:44 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425)
ProcEnviron:
SHELL=/bin/bash
TERM=xterm
PATH=(custom, no user)
LANG=en_US.UTF-8
SourcePackage: sssd
UpgradeStatus: No upgrade log present (probably fresh install)
mtime.conffile.
description: | updated |
description: | updated |
Changed in sssd (Ubuntu Precise): | |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in sssd (Ubuntu Precise): | |
assignee: | nobody → Timo Aaltonen (tjaalton) |
status: | Incomplete → In Progress |
status: | In Progress → Incomplete |
description: | updated |
Changed in sssd (Ubuntu Precise): | |
status: | Incomplete → In Progress |
Status changed to 'Confirmed' because the bug affects multiple users.