All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
From: Bruno Haible <bruno@clisp.org>
To: 70214@debbugs.gnu.org, "Pádraig Brady" <P@draigbrady.com>
Cc: Andreas Gruenbacher <andreas.gruenbacher@gmail.com>,
	"linux-cifs@vger.kernel.org" <linux-cifs@vger.kernel.org>
Subject: Re: bug#70214: 'install' fails to copy regular file to autofs/cifs, due to ACL or xattr handling
Date: Sat, 13 Apr 2024 21:29:08 +0200	[thread overview]
Message-ID: <7050532.CnaeKSotiK@nimes> (raw)
In-Reply-To: <cdd87faf-a769-35c8-31ce-a1bf016cbe3e@draigBrady.com>

Hi Pádraig,

I wrote:
> > 5) The same thing with 'cp -a' succeeds:
> > 
> > $ build-sparc64/src/cp -a /var/tmp/foo3941 $HOME/foo3941; echo $?
> > 0
> > $ build-sparc64-no-acl/src/cp -a /var/tmp/foo3941 $HOME/foo3941; echo $?
> > 0

You wrote:
> The psuedo code that install(1) uses is:
> 
> copy_reg()
>    if (x->set_mode) /* install */
>      set_acl(dest, x->mode /* 600 */)
>        ctx->acl = acl_from_mode ( /* 600 */)
>        acl_set_fd (ctx->acl) /* fails EACCES */
>        if (! acls_set)
>           must_chmod = true;
>        if (must_chmod)
>          saved_errno = EACCES;
>          chmod (ctx->mode /* 600 */)
>          if (save_errno)
>            return -1;

And, for comparison, what is the pseudo-code that 'cp -a' uses?
I would guess that there must be a relevant difference between both.

Bruno




  reply	other threads:[~2024-04-13 20:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <6127852.nNyiNAGI2d@nimes>
2024-04-13 16:39 ` bug#70214: 'install' fails to copy regular file to autofs/cifs, due to ACL or xattr handling Pádraig Brady
2024-04-13 19:29   ` Bruno Haible [this message]
2024-04-13 22:43     ` Pádraig Brady
2024-04-15 14:37       ` Andreas Grünbacher
2024-04-15 15:28         ` Pádraig Brady
     [not found]   ` <57792d8c-59d1-efbe-067a-886239cc3a4e@draigBrady.com>
2024-05-09 12:16     ` Pádraig Brady

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=7050532.CnaeKSotiK@nimes \
    --to=bruno@clisp.org \
    --cc=70214@debbugs.gnu.org \
    --cc=P@draigbrady.com \
    --cc=andreas.gruenbacher@gmail.com \
    --cc=linux-cifs@vger.kernel.org \
    /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.