NetBSD Problem Report #57857
From www@netbsd.org Sun Jan 14 18:36:52 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 77DBE1A9238
for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Jan 2024 18:36:52 +0000 (UTC)
Message-Id: <20240114183651.2D55D1A9239@mollari.NetBSD.org>
Date: Sun, 14 Jan 2024 18:36:51 +0000 (UTC)
From: rbranco@suse.de
Reply-To: rbranco@suse.de
To: gnats-bugs@NetBSD.org
Subject: cp(1) cannot operate on files residing on pseudo-filesystems
X-Send-Pr-Version: www-1.0
>Number: 57857
>Category: bin
>Synopsis: cp(1) cannot operate on files residing on pseudo-filesystems
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: needs-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 14 18:40:00 +0000 2024
>Closed-Date:
>Last-Modified: Wed Jul 24 00:40:55 +0000 2024
>Originator: Ricardo Branco
>Release: NetBSD 10.0_RC2
>Organization:
>Environment:
>Description:
cp(1) cannot operate on files residing on pseudo-filesystems
>How-To-Repeat:
To reproduce:
```
$ cp /proc/mounts /tmp
$ ls -l /tmp/mounts
-r--r--r-- 1 ricardo wheel 0 Jan 14 19:30 /tmp/mounts
```
>Fix:
https://github.com/NetBSD/src/pull/24
>Release-Note:
>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57857 CVS commit: src/bin/cp
Date: Mon, 15 Jan 2024 12:41:06 -0500
Module Name: src
Committed By: christos
Date: Mon Jan 15 17:41:06 UTC 2024
Modified Files:
src/bin/cp: utils.c
Log Message:
PR/57857: Ricardo Branco: Always copy regular files, even if they appear to
be zero-sized.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.50 src/bin/cp/utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->pending-pullups
State-Changed-By: rin@NetBSD.org
State-Changed-When: Fri, 05 Jul 2024 08:08:41 +0000
State-Changed-Why:
pullup-10 #742
From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/57857 CVS commit: [netbsd-10] src/bin/cp
Date: Sat, 20 Jul 2024 14:41:11 +0000
Module Name: src
Committed By: martin
Date: Sat Jul 20 14:41:11 UTC 2024
Modified Files:
src/bin/cp [netbsd-10]: utils.c
Log Message:
Pull up following revision(s) (requested by rin in ticket #742):
bin/cp/utils.c: revision 1.50
PR/57857: Ricardo Branco: Always copy regular files, even if they appear to
be zero-sized.
To generate a diff of this commit:
cvs rdiff -u -r1.49 -r1.49.6.1 src/bin/cp/utils.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: pending-pullups->needs-pullups
State-Changed-By: riastradh@NetBSD.org
State-Changed-When: Wed, 24 Jul 2024 00:40:55 +0000
State-Changed-Why:
Should this be pulled up to 9 too, or just closed?
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.