From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pierre Rouleau Newsgroups: gmane.emacs.bugs Subject: bug#49644: 27.2; copy-directory fails when Unix socket file is present in the source directory tree Date: Mon, 19 Jul 2021 15:50:32 -0400 Message-ID: References: <83zgui5lo3.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37222"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49644@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 19 21:52:23 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m5ZJO-0009Yd-PC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 21:52:22 +0200 Original-Received: from localhost ([::1]:49434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5ZJN-0000Nr-Kh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 19 Jul 2021 15:52:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45936) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5ZI6-0005mJ-LZ for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 15:51:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48832) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5ZI6-0007Oc-Do for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 15:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5ZI6-0005pu-DF for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2021 15:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pierre Rouleau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2021 19:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49644 X-GNU-PR-Package: emacs Original-Received: via spool by 49644-submit@debbugs.gnu.org id=B49644.162672424322407 (code B ref 49644); Mon, 19 Jul 2021 19:51:02 +0000 Original-Received: (at 49644) by debbugs.gnu.org; 19 Jul 2021 19:50:43 +0000 Original-Received: from localhost ([127.0.0.1]:60378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5ZHm-0005pL-Po for submit@debbugs.gnu.org; Mon, 19 Jul 2021 15:50:43 -0400 Original-Received: from mail-qk1-f178.google.com ([209.85.222.178]:44870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5ZHk-0005p8-7n for 49644@debbugs.gnu.org; Mon, 19 Jul 2021 15:50:41 -0400 Original-Received: by mail-qk1-f178.google.com with SMTP id a80so6530221qkg.11 for <49644@debbugs.gnu.org>; Mon, 19 Jul 2021 12:50:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+/47sXKX2IDMMCARMQrSdGA92Vc9He0yNE7zX8qq+jo=; b=cKmkhZIUIUEM3wQ1Nmepk5McNXiLzG7V11bUlshwmda/yRvML85ryikoegR8j9YXn9 3vHQVD/kppFxQw5wGGvKCPNe03g1VYOiUzcs84VfSxYRQlN6tM8tuZOEWc5/TYa5bZVd X1ml9/QqGlVodUKI8zn2VCF1jmjuH8WWWzr0JUA2rkzj3Q1x0jBwFeefL1YJW2NycXwE KY2b8giWaAssOPx0d2nIkE15MVxO/zlh2GkQZZ9n/AUZL7lovH8+ufS8+SlBp4CeW1wX oCVQr9J7aPaVr3fr0al5wMRfrzWUl7+zSGpfBOEot0ahHWwUd9l2PpgK6Z0/y3DZQpg5 vnww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=+/47sXKX2IDMMCARMQrSdGA92Vc9He0yNE7zX8qq+jo=; b=TzPhJMKZrBvYSHoAZQyJEmTA650MM3u81zjyTIJXzH/9tJj1zmKM4mCTAZR4IhdMuA EDV0xbil4JHp2SjRe1VMPKKXiQTrBNTIan7bZ7Rq+O86sltF1uQDDH1B9+BM8F9HHFy2 FhOfaYKE5rDZNbNV6ZHbu6qEMw40nZAci+MAeB96ZCCmKL7TaBMSfX/cLk8k/+iCif0S c+tjT2Bh/5SwqKsuuU5WR6oW3teY3n6g0l7gN9/wZMHrVC13AD1ltQpump2V1/VlSWp8 MB0Nhc8+zy7OlyGjNH23VhjxtK0q1K1xVLWEaYn3dhXcwe+qotmZcyefn+zkrM5Ls8jq B2GQ== X-Gm-Message-State: AOAM533r2f3MrFSPwCBtUuW78zWZczCY3N3TtIGZAsFDCX9QnT4BLDqq Toq2a00Po3Du2KDz73dIvmE= X-Google-Smtp-Source: ABdhPJzdG2370pGbSuxXsnHY2RilOXj7eFvNaOgkJS4r5k6scDBegATIqD8JMabbmDD2G8iH0EIoYA== X-Received: by 2002:a37:8407:: with SMTP id g7mr25895752qkd.123.1626724234496; Mon, 19 Jul 2021 12:50:34 -0700 (PDT) Original-Received: from [192.168.0.158] (modemcable082.211-161-184.mc.videotron.ca. [184.161.211.82]) by smtp.gmail.com with ESMTPSA id k10sm956003qtp.76.2021.07.19.12.50.33 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jul 2021 12:50:33 -0700 (PDT) In-Reply-To: <83zgui5lo3.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.21) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210307 Archived-At: > On Jul 19, 2021, at 12:10 PM, Eli Zaretskii wrote: >=20 >> From: Pierre Rouleau >> Date: Mon, 19 Jul 2021 11:04:39 -0400 >>=20 >> There is no Emacs crash involved here. It's just a feature request. >>=20 >> Try `copy-directory' on a directory tree that contains one Unix = socket. >> Something like "~/elpa/gnupg" which often contains Unix socket files. >> This will fail with an error stating that the Unix socket cannot be >> copied. >>=20 >> Although its true that Unix sockets cannot be copied, it would be = nice >> to offer the users the ability to copy the directory tree anyway, >> skipping the Unix socket files. >>=20 >> The function `copy-directory' does not provide a mechanism to skip = the >> copy of such files, so it becomes impossible to copy a directory tree >> that contains such a file. It would be useful to add argument to >> provide the ability to skip such files. Currently, the only way is = to >> override or advise the function `copy-file' when using = `copy-directory'. >=20 > I think it would be more useful to add an optional behavior whereby > any file that cannot be copied for some reason would not terminate the > copy. There's no need to allow such tolerance only for sockets. I > could imagine a huge file that cannot be copied because the target > directory doesn't have enough space, for example. Perhaps ask the > user whether to continue, when a copy fails, or provide a user option I agree that supporting more use cases would be beneficial.=20 It would be nice that no prompting is required though or at least that = it would be possible to use the function in a non-interactive way. Providing user-options might be the way.=20 That would leave the signature intact and yet would allow introducing = several new behaviours,=20 whether prompting is used or not, what type of condition is ignored, = etc=E2=80=A6.=20 For my use case I would at least need to be able to set a copy directory = user-option to prevent copy-file from stopping on a Unix socket.=