From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by sourceware.org (Postfix) with ESMTPS id C1B66384802E for ; Thu, 17 Jun 2021 01:47:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C1B66384802E Received: by mail-oi1-x22d.google.com with SMTP id t140so4751590oih.0 for ; Wed, 16 Jun 2021 18:47:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KQ3x3Yxi4U457THXxeAAo0TxEQ2nMcoMU2K1JesaCjQ=; b=Rh/9PNmo0g2fgmJ7nFl9SUk6s1oRXERaTt8FdayqKTQ/p+Ebr7DUWxhTdb2+wMS+8q c2wPohx4Wy1mQZCQAUwKfloc4n6Gb0ueWkEN8YZv7cm7cH3lk4cWfIVhkpzHM7aVy4PL HgdY/7yBjCkmBlxMFDddW89ZuEdIBoBsGYnTafBwdklfWCe93/tY23GzRt59L9DVy82H /lm/n3+gHi504KgJVCOrKKCDsZ8cGr/1OsHqv7bAXa5ZBBwcJF9t2AgZLH+5k0XzndpC Ih1MM0FNC/4gt1QzU19k4tWchRq1D1y+xk6A0CODlRZeZzErjd3sf2d04KEPf8YmnMLl WfWw== X-Gm-Message-State: AOAM531M2EfEeWc3PCEsIsDmC+/G3tqFBZE/Oveh5hi1kVVXYnAhTruU pg3G2/myl/B3iIHTiAMqLk0oV2H69Eu8bb0iMRQ= X-Google-Smtp-Source: ABdhPJys7EDGplLwtRpCEttjyubKhtOtfWFaskR7JrjIjAjnY/WIYuVA049ayH1U0cKSwZex68GoQqgw4ZOzhNuKoSw= X-Received: by 2002:aca:4c85:: with SMTP id z127mr1547077oia.21.1623894472874; Wed, 16 Jun 2021 18:47:52 -0700 (PDT) MIME-Version: 1.0 References: <60C82AAB.1090901@tlinx.org> <60C917DD.1070403@tlinx.org> In-Reply-To: <60C917DD.1070403@tlinx.org> From: Russell VT Date: Wed, 16 Jun 2021 18:47:40 -0700 Message-ID: Subject: Re: bug in cygwin tar reading unexpected input(s)... To: L A Walsh Cc: cygwin X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2021 01:47:55 -0000 Replay by from my phone, so it's a bit brief... Try opening a Cygwin terminal AS administrator, making sure it gives you the "process may modify the system" warning dialog, etc... Then repeat If it works, or complains less, then the problem is permissions at *some* level. Despite Windows having "administrator" type groups, they are STILL protected parts of the filesystem, etc. There will be fewer protections by using the "system" account, etc. WARNING: Using this account MAY produce irreparable harm to the system. Do this at your own risk. -- Russell M. Van Tassell russellvt@gmail.com This message was sent from my wireless handheld device. On Tue, Jun 15, 2021, 14:14 L A Walsh wrote: > > > 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 > > 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 Dbgview [SI\Dbgview.exe] > > 2019/02/07 22:53 Desktops [SI\Desktops.exe] > > 2019/02/07 22:53 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 >> >