From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id qARHAA8w069912 for ; Tue, 27 Nov 2012 11:10:10 -0600 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id vnzdqvKIvKqdgeQa for ; Tue, 27 Nov 2012 09:12:26 -0800 (PST) Date: Tue, 27 Nov 2012 14:50:01 -0200 From: Carlos Maiolino Subject: Re: [RFC] [PATCH] xfs_quota: support relative path as `path' arguments Message-ID: <20121127165001.GA11620@andromeda.usersys.redhat.com> References: <50B49074.1020000@jp.fujitsu.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <50B49074.1020000@jp.fujitsu.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: Satoru Takeuchi Cc: xfs ML On Tue, Nov 27, 2012 at 07:05:40PM +0900, Satoru Takeuchi wrote: > From: Satoru Takeuchi > > Current xfs_quota only accepts absolute path as its `path' arguments. > This patch adds the support of relative path for user's convenience. > > Signed-off-by: Satoru Takeuchi > Using realpath() to handle the path being passed by user, not only makes able the usage of relative paths, but also fixes the problem in having a "/" at the end of the path. For those who abuses of TABs, this is very annoying. Looks good, Reviewed-by: Carlos Maiolino Tested-by: Carlos Maiolino > --- > libxcmd/paths.c | 42 +++++++++++++++++++++++++++++------------- > 1 file changed, 29 insertions(+), 13 deletions(-) > > diff --git a/libxcmd/paths.c b/libxcmd/paths.c > index 2a92299..bd84cde 100644 > --- a/libxcmd/paths.c > +++ b/libxcmd/paths.c > @@ -27,6 +27,7 @@ > #include > #include > #include > +#include > > extern char *progname; > > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs -- Carlos _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs