Bug 1027128 - Quota: Executing quota-remove-xattr.sh to see its usage, actually executes it.
Summary: Quota: Executing quota-remove-xattr.sh to see its usage, actually executes it.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat
Component: glusterd
Version: 2.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: RHGS 2.1.2
Assignee: vpshastry
QA Contact: Gowrishankar Rajaiyan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-06 08:40 UTC by Gowrishankar Rajaiyan
Modified: 2015-05-13 16:29 UTC (History)
6 users (show)

Fixed In Version: glusterfs-3.4.0.51rhs
Doc Type: Bug Fix
Doc Text:
Previously, using the -h option on quota-remove-xattr.sh script or using quota-remove-xattr.sh to display the disk quota usage would lead to the script execution. With this update, this issue is fixed.
Clone Of:
Environment:
Last Closed: 2014-02-25 07:59:17 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2014:0208 0 normal SHIPPED_LIVE Red Hat Storage 2.1 enhancement and bug fix update #2 2014-02-25 12:20:30 UTC

Description Gowrishankar Rajaiyan 2013-11-06 08:40:23 UTC
Description of problem: It is a common practice to execute just the script or with -h option to see its usage or help. While doing the same with quota-remove-xattr.sh, we see that this script executes itself on the pwd along with its usage.


Version-Release number of selected component (if applicable):
glusterfs-server-3.4.0.38rhs-1.el6rhs.x86_64

How reproducible: 100%


Steps to Reproduce:
1. Execute /usr/libexec/glusterfs/quota/quota-remove-xattr.sh to see usage

Actual results:
[root@server1 ~]# /usr/libexec/glusterfs/quota/quota-remove-xattr.sh 
usage: /usr/libexec/glusterfs/quota/quota-remove-xattr.sh <path>
setfattr: .: Operation not supported
setfattr: ./.ssh: Operation not supported
setfattr: ./.ssh/authorized_keys: Operation not supported
setfattr: ./.ssh/known_hosts: Operation not supported
setfattr: ./install.log: Operation not supported


Expected results: Should show only usage and not be executed.


Additional info:

Comment 3 Vivek Agarwal 2013-11-09 10:05:35 UTC
Need a -h option for help

Comment 4 Gowrishankar Rajaiyan 2013-12-23 04:41:08 UTC
[root@rhss4 ~]# /usr/libexec/glusterfs/quota/quota-remove-xattr.sh 
usage: /usr/libexec/glusterfs/quota/quota-remove-xattr.sh <path>
[root@rhss4 ~]# /usr/libexec/glusterfs/quota/quota-remove-xattr.sh -h
usage: /usr/libexec/glusterfs/quota/quota-remove-xattr.sh <path>
[root@rhss4 ~]# 


[root@rhss4 ~]# gluster --version
glusterfs 3.4.0.51rhs built on Dec 18 2013 11:15:39
Repository revision: git://git.gluster.com/glusterfs.git
Copyright (c) 2006-2011 Gluster Inc. <http://www.gluster.com>
GlusterFS comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GlusterFS under the terms of the GNU General Public License.
[root@rhss4 ~]#

Comment 5 Pavithra 2014-01-08 06:42:15 UTC
Can you please verify the doc text for technical accuracy?

Comment 6 vpshastry 2014-01-08 06:54:08 UTC
Doc text looks good.

Comment 8 errata-xmlrpc 2014-02-25 07:59:17 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2014-0208.html


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