From: Andreas Gruenbacher <agruen@suse.de>
To: Anoop Vijayan <acv@linux.vnet.ibm.com>, acl-devel@nongnu.org
Cc: xfs@oss.sgi.com
Subject: Re: getfacl gives octal output for Hebrew user/group names
Date: Fri, 19 Jun 2009 19:17:45 +0200 [thread overview]
Message-ID: <200906191917.45817.agruen@suse.de> (raw)
In-Reply-To: <4A38F04C.9090909@linux.vnet.ibm.com>
Anoop,
On Wednesday 17 June 2009 15:31:56 Anoop Vijayan wrote:
> Hello!
>
> Running RHEL5 U2 x86_64, with Samba & Winbind configure to work with
> Active-Directory env. Users & Groups in the Active-Directory are in hebrew
> and locale settings are correct (Hebrew/UTF-8) Posix Acls on file has
> special characters ('\' & hebrew chars) for the group/user names. In
> circumstances like this, where the user/group accounts come from an AD
> server, getfacl could be showing the "invalid" characters as octal.
> Example:
>
> [root]# getfacl a.a
> # file: a.a
> # owner: GTS\134\327\236\327\225\327\251\327\225\327\237
> # group: root
> user::rw-
> group::r--
> group:GTS\134\327\251\327\236\327\225\327\250:-w-
> group:GTS\134\327\251\327\250\327\252:r-x
> mask::rwx
> other::r--
>
> Now - we are also have GPFS fs and when we run the mmgetacl command the
> Posix acls in Hebrew showed OK.
>
> I am trying to work out a patch which fixes this and the issue seems to be
> here
> const char *quote(const char *str)
> [...]
>
> Removing the checks isprint(*s) and *s == '\\' resolves the issue.
> AD shares are associated with a doamin name and AD users/groups will be in
> the format Dom\user. Can someone explain why these checks are required?
The '\\' check is required so that backslashes will go through
unquote(quote(string)) will come out correctly.
The isprint() check is a misguided attempt to do something reasonable with
unprintable characters, but it leads to lots of problems with different
encodings, so it should probably be removed. I'll fix that.
There also is a check for '=' in quote(). This is from the attr package which
separates names and values with '=', but unnecessary in acl. quote() should
probably be passed in a string of additional characters that need to be quoted
so that it does the right thing in both packages.
Thanks,
Andreas
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
next prev parent reply other threads:[~2009-06-19 17:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 13:31 getfacl gives octal output for Hebrew user/group names Anoop Vijayan
2009-06-17 14:18 ` Eric Sandeen
2009-06-19 17:17 ` Andreas Gruenbacher [this message]
2009-06-22 7:30 ` Anoop Vijayan
2009-06-23 9:48 ` [Acl-devel] " Andreas Gruenbacher
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=200906191917.45817.agruen@suse.de \
--to=agruen@suse.de \
--cc=acl-devel@nongnu.org \
--cc=acv@linux.vnet.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox