summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Pocock <daniel@pocock.pro>2016-12-20 13:26:03 -0500
committerSteve Dickson <steved@redhat.com>2016-12-20 13:26:03 -0500
commit30a82104e0360568c56eff08000f76360eb5ffb2 (patch)
tree4c4abc36a71151939a3030c0e21d63cb67d8ae7f
parentf46bbf2136eaf2fa452c01b0352528ea169759c9 (diff)
downloadnfs-utils-30a82104e0360568c56eff08000f76360eb5ffb2.tar.gz
nfs-utils-30a82104e0360568c56eff08000f76360eb5ffb2.tar.xz
nfs-utils-30a82104e0360568c56eff08000f76360eb5ffb2.zip
start-statd: script using incompatible file descriptor
POSIX.1-2008 only specifies that file descriptor numbers from 0 to 9, inclusive, are supported. The number 200 works in the bash shell, but not in dash. This patch changes the file descriptor number from 200 to 9. Reported in Debian bug #848277 Signed-off-by: Daniel Pocock <daniel@pocock.pro> Signed-off-by: Steve Dickson <steved@redhat.com>
-rwxr-xr-xutils/statd/start-statd4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/statd/start-statd b/utils/statd/start-statd
index 2fd6039..82715b4 100755
--- a/utils/statd/start-statd
+++ b/utils/statd/start-statd
@@ -7,8 +7,8 @@
PATH="/sbin:/usr/sbin:/bin:/usr/bin"
# Use flock to serialize the running of this script
-exec 200> /var/run/rpc.statd.lock
-flock -e 200
+exec 9> /var/run/rpc.statd.lock
+flock -e 9
if [ -s /var/run/rpc.statd.pid ] &&
[ 1`cat /var/run/rpc.statd.pid` -gt 1 ] &&