[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#848277: nfs-common: /usr/sbin/start-statd: 10: exec: 200: not found



Package: nfs-common
Version: 1:1.3.4-1
Severity: important

Even after fixing nfs-config.service (see #848145), I could no longer
use my NFS 3 mounts because rpc.statd failed to start:

,----
| /usr/sbin/start-statd: 10: exec: 200: not found
`----

That's because dash, unlike bash, does not support file descriptors
higher than 9 in redirection and treats the command as if it had been
"exec 200 > /var/run/rpc.statd.lock".

According to POSIX.1-2008[1], you cannot rely on a number higher than 9
here:

,----
| The largest possible value is implementation-defined; however, all
| implementations shall support at least 0 to 9, inclusive, for use by the
| application.
`----

Indeed, using 9 rather than 200 actually works.


-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-pavil+ (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages nfs-common depends on:
ii  adduser              3.115
ii  init-system-helpers  1.46
ii  keyutils             1.5.9-9
ii  libc6                2.24-8
ii  libcap2              1:2.25-1
ii  libcomerr2           1.43.3-1
ii  libdevmapper1.02.1   2:1.02.136-1
ii  libevent-2.0-5       2.0.21-stable-2.1
ii  libgssapi-krb5-2     1.15-1
ii  libk5crypto3         1.15-1
ii  libkeyutils1         1.5.9-9
ii  libkrb5-3            1.15-1
ii  libmount1            2.29-1
ii  libnfsidmap2         0.25-5
ii  libtirpc1            0.2.5-1
ii  libwrap0             7.6.q-25
ii  lsb-base             9.20161125
ii  rpcbind              0.2.3-0.5
ii  ucf                  3.0036

Versions of packages nfs-common recommends:
ii  python  2.7.11-2

Versions of packages nfs-common suggests:
pn  open-iscsi  <none>
pn  watchdog    <none>

-- no debconf information


1. http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html (§2.7)


Reply to: