Web lists-archives.com

Re: incompat in cygwin choice of using '+' as domain and user separator.




On 8/22/2018 6:36 PM, L A Walsh wrote:
> Ran in to this trying to use tar to store acls and xattrs:
> 
>>  tar caf lawbins.tar scripts scripts- bin 
> tar: miner.js: Warning: Cannot acl_to_text: Invalid argument
> tar: run-crons.sys: Warning: Cannot acl_to_text: Invalid argument
> tar: smallprof.out: Warning: Cannot acl_to_text: Invalid argument
> tar: tmon.out: Warning: Cannot acl_to_text: Invalid argument
> tar: ubytes_to_utf8.new: Warning: Cannot acl_to_text: Invalid argument
> 
> examining one of these:
> 
>>  find bin -name tmon.out       
> bin/tmon.out
> 
>>  lsacl bin/tmon.out
> [u::rwx,g::rwx,o:r-x,u:Unknown+User:rwx,g:Unknown+Group:rwx,g:Administrators:rwx,g:Bliss\Domain
> Admins:rwx,m:rwx/] bin/tmon.out
> 
> I tried tar in an existing dir:
> 
>>  mkdir test
>>  tar caf test.tar test
>>  ll test
> total 0
>>  cd test
>>  tar xaf ../test.tar
>>  ll
> total 0
> drwxrwxr-x+ 1 0 Aug 22 15:26 test/
>>  lsacl test
> [u::rwx,g::rwx,g:Bliss\lawgroup:rwx,g:Bliss\Domain
> Admins:rwx,m:rwx,o:r-x/
> u::rwx,g::rwx,g:Bliss\lawgroup:rwx,g:Bliss\Domain
> Admins:rwx,m:rwx,o:r-x] test
> 
> With the above and only standard separator chars, no problem
> 
> I'm guessing, but '+' is a reserved char that's not permitted in
> acl_to_text...

You're misinterpreting the '+'.  It was used in place of ' ' (a space)
in "Unknown User" and "Unknown Group".  Now why isn't "Domain Admins"
also "Domain+Admins" is a question of pondering.

-- 
cyg Simple

Attachment: 0x7183A42BE56022D5.asc
Description: application/pgp-keys

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple