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:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 14 18:40:00 +0000 2024
>Last-Modified:  Mon Jan 15 17:45:01 +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

>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.

NetBSD Home
NetBSD PR Database Search

(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.