Bug 761871 (GLUSTER-139)

Summary: tiny glitch in mount.glusterfs in 2.0.4
Product: [Community] GlusterFS Reporter: Amar Tumballi <amarts>
Component: scriptsAssignee: Amar Tumballi <amarts>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: 2.0.3CC: gluster-bugs, rabhat, vraman
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTNR Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Amar Tumballi 2009-07-14 22:34:44 UTC
On Tue, Jul 14, 2009 at 11:30 AM, Brent A Nelson <brent.edu> wrote:
On my hardy system, /bin/sh refers to dash.  The new /sbin/mount.glusterfs still uses /bin/sh, but its function definitions have changed from "function-name ()" to "function function-name ()", which is bash syntax.

If I change the top line from "#!/bin/sh" to "#!/bin/bash", all is well. Otherwise, I get a syntax error at line 21.  For systems where /bin/sh is a link to bash, this would not be a problem.

Thanks,

Brent

Comment 1 Anand Avati 2009-07-16 04:37:51 UTC
PATCH: http://patches.gluster.com/patch/751 in master (change mount.glusterfs.in to work with non-bash shells too.)

Comment 2 Anand Avati 2009-07-17 18:05:31 UTC
PATCH: http://patches.gluster.com/patch/766 in release-2.0 (change mount.glusterfs.in to work with non-bash shells too.)