[Bug 883257] Re: nfs is left to an inconsistent state when /etc/default/nfs-* parameters have options without quotes
Leonardo Borda
883257 at bugs.launchpad.net
Fri Oct 28 20:14:23 UTC 2011
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to nfs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/883257
Title:
nfs is left to an inconsistent state when /etc/default/nfs-*
parameters have options without quotes
Status in “nfs-utils” package in Ubuntu:
New
Bug description:
When a space+option is left without quotes in NEED_IDMAPD it leaves
nfs to an inconsistent state upon start.
Steps to reproduce
1. in /etc/default/nfs-common change NEED_IDMAPD= to
NEED_IDMAPD= yes
2. stop idmapd, start idmapd
This is probably caused by /etc/init/idmapd that runs the following code.
env DEFAULTFILE=/etc/default/nfs-common
if [ -f "$DEFAULTFILE" ]; then
. "$DEFAULTFILE"
fi
In this case NEED_IDMAPD is empty which causes issues when starting
the service.
PS: in my tests since /etc/init/idmapd.conf tries to source the
variable NEED_IDMAPD= yes ( without quotes ), it also starts the
following linux util /usr/bin/yes :-P
I know having spaces in variable assignment must not happen without
quotes though we should find a way of enforcing or sanitize variables.
Leonardo
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nfs-common 1:1.2.2-4ubuntu5.1
Uname: Linux 2.6.39-020639rc4-generic i686
Architecture: i386
Date: Fri Oct 28 15:33:08 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110426)
ProcEnviron:
LANGUAGE=en_CA:en
LANG=en_CA.UTF-8
SHELL=/bin/bash
SourcePackage: nfs-utils
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/883257/+subscriptions
More information about the foundations-bugs
mailing list