All of lore.kernel.org
 help / color / mirror / Atom feed
From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
To: Carlos Maiolino <cmaiolino@redhat.com>, xfs ML <xfs@oss.sgi.com>
Subject: Re: [RFC] [PATCH] xfs_quota: support relative path as `path' arguments
Date: Wed, 28 Nov 2012 08:41:39 +0900	[thread overview]
Message-ID: <50B54FB3.60604@jp.fujitsu.com> (raw)
In-Reply-To: <20121127165001.GA11620@andromeda.usersys.redhat.com>

Hi Carlos,

(2012/11/28 1:50), Carlos Maiolino wrote:
> On Tue, Nov 27, 2012 at 07:05:40PM +0900, Satoru Takeuchi wrote:
> 
>> From: Satoru Takeuchi <takeuchi_satoru@jp.fujitsu.com>
>>
>> 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 <takeuchi_satoru@jp.fujitsu.com>
>>
> 
> 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.

Ah, I also tend to fix the trailing "/" at the end of the path as you said.
But I forgot to mentioned about it by the patch description :-)

Thanks,
Satoru

> 
> Looks good,
> 
> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> 
> Tested-by: Carlos Maiolino <cmaiolino@redhat.com>
> 
>> ---
>>  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 <xfs/path.h>
>>  #include <xfs/input.h>
>>  #include <xfs/project.h>
>> +#include <limits.h>
>>  
>>  extern char *progname;
>>  
>> xfs mailing list
>> xfs@oss.sgi.com
>> http://oss.sgi.com/mailman/listinfo/xfs
> 


_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      reply	other threads:[~2012-11-27 23:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-27 10:05 [RFC] [PATCH] xfs_quota: support relative path as `path' arguments Satoru Takeuchi
2012-11-27 16:50 ` Carlos Maiolino
2012-11-27 23:41   ` Satoru Takeuchi [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50B54FB3.60604@jp.fujitsu.com \
    --to=takeuchi_satoru@jp.fujitsu.com \
    --cc=cmaiolino@redhat.com \
    --cc=xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.