delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2021/06/15/17:14:39

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D950238515FF
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=tlinx.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tlinx.org
Message-ID: <60C917DD.1070403@tlinx.org>
Date: Tue, 15 Jun 2021 14:13:01 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird 2.0.0.24 (Windows/20100228)
MIME-Version: 1.0
To: Russell VT <russellvt AT gmail DOT com>
Subject: Re: bug in cygwin tar reading unexpected input(s)...
References: <60C82AAB DOT 1090901 AT tlinx DOT org>
<CANV2+nUOP4eyReRK-RJ1mUrs7ZHNUnKsgWi_eVNJKjhPjZfjzA AT mail DOT gmail DOT com>
In-Reply-To: <CANV2+nUOP4eyReRK-RJ1mUrs7ZHNUnKsgWi_eVNJKjhPjZfjzA@mail.gmail.com>
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>


On 2021/06/15 00:16, Russell VT wrote:
> I think we need more context, here... as what does Windows versus Cygwin 
> think those permissions are...???
---
	Which permissions?  The error is 'no such object', not
'access denied'.  I believe it is similar to trying to read (or
modify) xattr's or acl's on linux symlinks.  

> 
> Are you running your terminal, as you... or did you run it as Administrator?
---
	I am in group Administrators as well as Domain Admins
(Samba Domain).  Domain Admins and System are both in the
local Administrators group.


> Have you run an update, and not rebooted?
---
	I don't believe so at that time, but I have rebooted since then.
The problem only occurred on files that were symlinks as seen by Windows
and Cygwin.
> 
> There should be some "basic shell debugging" done here, first...
---
	I'm not sure what you mean.  Oops, I forgot to list the
command line, but thought that "--xattrs" might be implied from the 
fact that the error was about retrieving xattrs.

	Cmdline was using shell script calling a function, "backup_dir"
with "ProgramData" from the root directory, where the function was:

backup_dir() {
  my DIR=${1:?}
  tar c --acls --xattrs --sparse -b 2048 --one-file-system "$DIR" | 
    dd bs=1M iflag=fullblock of="/b/June_backups/$DIR" oflag=nonblock
}


> since 
> there's a disconnect from when tar gets its file list, and when it 
> physically goes to retrieve a (possibly temporary) file. It will also 
> complain about directories it can read, but not access.
---
	Those were symlinks, not directories.
> So, it would be 
> better to figure out what the "difference" is between what you expect, 
> and what actually happened with the tar.
---
	I would expect it might not complain about not being
able to read xattr's on symlinks?  I don't think it complains about
not being able to read them on linux -- or at least I've never seen
such.

> Unfortunately, permission issues between Windows and Cygwin can be 
> */extremely/* complex (ie. there are a ton of details missing here, 
> which might make it easier to help troubleshoot).
---
	What necessary details are missing?

> 
> Hope that helps point you in a good direction.
---
	Not sure. I thought I was reporting a bug in cygwin tar
giving an error about trying to read xattrs on symlinks, as I don't
believe it gives an error on linux doing the same thing.  Does it?
Thanks for your questions, but I'm still not very clear on what
I left out.

	I'd tend to ignore the error on what appeared to be
a misspelled filename, as I'm not even sure how to recreate
that file, but attempting to dump xattrs on a symlink seems like
a pretty straight forward symptom/testcase.  What more details
do you think would be pertinent?  

Thanks!
-Linda


> 
> Cheers!
> Russell VT
> 
> On Mon, Jun 14, 2021 at 9:22 PM L A Walsh <cygwin AT tlinx DOT org 
> <mailto:cygwin AT tlinx DOT org>> wrote:
> 
>     Tar'ing up a windows dir (ProgData) had some unexected failures:
> 
>     Several of the sort:
> 
>     tar: Dbgview: Warning: Cannot llistxattrat: No such file or directory
>     tar: Desktops: Warning: Cannot llistxattrat: No such file or directory
>     tar: DiskView: Warning: Cannot llistxattrat: No such file or directory
>     tar: LoadOrd: Warning: Cannot llistxattrat: No such file or directory
>     tar: portmon: Warning: Cannot llistxattrat: No such file or directory
> 
>     Where the item listed (Dbgview, DiskView, etc) is a
>     windows symlink like:
> 
>     2019/02/07  22:53    <SYMLINK>      Dbgview [SI\Dbgview.exe]
>     2019/02/07  22:53    <SYMLINK>      Desktops [SI\Desktops.exe]
>     2019/02/07  22:53    <SYMLINK>      DiskView [SI\DiskView.exe]
> 
>     and stems from the use of the --xattrs switch.
> 
>     Win7SP1x64
>     cygcheck (cygwin) 3.2.0
> 
>     The tar continued and finished much as it would after an unreadable
>     file.
> 
>     Another error, maybe similar,
> 
> 
>     tar: C\:Prog64FastPictureViewer: Warning: Cannot file_has_acl_at: No
>     such file or directory
> 
>      From a file in "C:\Program Files\FastPictureViewer" [likely mis-]named
>     "C:Prog64FastPictureViewer"
> 
>     It seems to be a .dll, that somehow got its name mangled.
> 
>     Not sure what it was trying to do, but the file seems to be 'in-use'.
> 
> 
> -- 
> Russell M. Van Tassell <russellvt AT gmail DOT com <mailto:russellvt AT gmail DOT com>>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019