NetBSD Problem Report #57855

From www@netbsd.org  Sun Jan 14 18:03:05 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 D9F6C1A9238
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 14 Jan 2024 18:03:05 +0000 (UTC)
Message-Id: <20240114180304.82F2E1A9239@mollari.NetBSD.org>
Date: Sun, 14 Jan 2024 18:03:04 +0000 (UTC)
From: rbranco@suse.de
Reply-To: rbranco@suse.de
To: gnats-bugs@NetBSD.org
Subject: gzip(1) cannot preserve the file's times because it first sets the file's flags.
X-Send-Pr-Version: www-1.0

>Number:         57855
>Category:       bin
>Synopsis:       gzip(1) cannot preserve the file's times because it first sets the file's flags.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 14 18:05:00 +0000 2024
>Closed-Date:    
>Last-Modified:  Sat Feb 17 18:56:38 +0000 2024
>Originator:     Ricardo Branco
>Release:        NetBSD 10.0_RC2
>Organization:
>Environment:
>Description:
gzip(1) cannot preserve the file's times because it first sets the file's flags.

>How-To-Repeat:
$ /usr/bin/touch /tmp/foo
$ /bin/chflags uchg /tmp/foo
$ /usr/bin/gzip -v /tmp/foo
gzip: couldn't utimes: /tmp/foo.gz: Operation not permitted
/tmp/foo:         -99.9% -- replaced with /tmp/foo.gz
>Fix:
https://github.com/NetBSD/src/pull/23

>Release-Note:

>Audit-Trail:
From: "matthew green" <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57855 CVS commit: src/usr.bin/gzip
Date: Sun, 14 Jan 2024 18:12:59 +0000

 Module Name:	src
 Committed By:	mrg
 Date:		Sun Jan 14 18:12:59 UTC 2024

 Modified Files:
 	src/usr.bin/gzip: gzip.c

 Log Message:
 set file flags after setting other modes

 otherwise permission to set modes may be revoked by the flags.
 from PR#57855.  thanks!

 XXX: pullup-all


 To generate a diff of this commit:
 cvs rdiff -u -r1.119 -r1.120 src/usr.bin/gzip/gzip.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Martin Husemann" <martin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/57855 CVS commit: [netbsd-10] src/usr.bin/gzip
Date: Sun, 4 Feb 2024 11:07:41 +0000

 Module Name:	src
 Committed By:	martin
 Date:		Sun Feb  4 11:07:41 UTC 2024

 Modified Files:
 	src/usr.bin/gzip [netbsd-10]: gzip.1 gzip.c unlz.c unpack.c

 Log Message:
 Pull up the following, requested by mrg in ticket #582:

 	usr.bin/gzip/gzip.1                             up to 1.32
 	usr.bin/gzip/gzip.c                             up to 1.122
 	usr.bin/gzip/unlz.c                             up to 1.8
 	usr.bin/gzip/unpack.c                           up to 1.4

 Sync usr.bin/gzip to HEAD to fix a few minor issues, including
 PR 57858 and PR 57855.


 To generate a diff of this commit:
 cvs rdiff -u -r1.31 -r1.31.10.1 src/usr.bin/gzip/gzip.1
 cvs rdiff -u -r1.118 -r1.118.2.1 src/usr.bin/gzip/gzip.c
 cvs rdiff -u -r1.7 -r1.7.2.1 src/usr.bin/gzip/unlz.c
 cvs rdiff -u -r1.3 -r1.3.14.1 src/usr.bin/gzip/unpack.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->feedback
State-Changed-By: jkoshy@NetBSD.org
State-Changed-When: Sat, 17 Feb 2024 18:56:38 +0000
State-Changed-Why:
Fixed in r1.120 of src/usr.bin/gzip/gzip.c.


>Unformatted:

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.