Bug 761871 (GLUSTER-139) - tiny glitch in mount.glusterfs in 2.0.4
Summary: tiny glitch in mount.glusterfs in 2.0.4
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-139
Product: GlusterFS
Classification: Community
Component: scripts
Version: 2.0.3
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Amar Tumballi
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-14 22:34 UTC by Amar Tumballi
Modified: 2013-12-19 00:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

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.)


Note You need to log in before you can comment on or make changes to this bug.