Public bug reported:

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)

** Affects: nfs-utils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: apport-bug i386 natty

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/883257

Title:
  nfs is left to an inconsistent state when /etc/default/nfs-*
  parameters have options without quotes

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/883257/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to