[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#891174: marked as done ([PATCH] Fix for bug #497342: nvi keeps files open for writing, making their execution fail with ETXTBSY)



Your message dated Thu, 23 Apr 2020 23:18:48 +0000
with message-id <E1jRl7I-000Cq7-71@fasolo.debian.org>
and subject line Bug#891174: fixed in nvi 1.81.6-16
has caused the Debian Bug report #891174,
regarding [PATCH] Fix for bug #497342: nvi keeps files open for writing, making their execution fail with ETXTBSY
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
891174: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891174
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: nvi
Version: 1.81.6-13
Severity: important
Tags: patch upstream

[sorry for opening another bug report instead of replying to the bug log,
but replies to the bug log seem to go *completely* ignored by everybody;
just check the end of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=497342;
that virus/phishing message is there since more than a year!]

Opening the file read-only is enough for flock() -- please notice that
ep->fd is only used to keep the lock hot, that's not the descriptor that
is used for reading or writing data to the file.

--- nvi-1.81.6.orig/common/exf.c
+++ nvi-1.81.6/common/exf.c
@@ -408,7 +408,7 @@ postinit:
 	 * an error.
 	 */
 	if (rcv_name == NULL && ep->refcnt == 0) {
-		if ((ep->fd = open(oname, O_RDWR)) == -1)
+		if ((ep->fd = open(oname, O_RDONLY)) == -1)
 		    goto no_lock;
 
 		switch (file_lock(sp, oname, &ep->fcntl_fd, ep->fd, 1)) {

--- End Message ---
--- Begin Message ---
Source: nvi
Source-Version: 1.81.6-16
Done: Boyuan Yang <byang@debian.org>

We believe that the bug you reported is fixed in the latest version of
nvi, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 891174@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Boyuan Yang <byang@debian.org> (supplier of updated nvi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 23 Apr 2020 18:54:55 -0400
Source: nvi
Architecture: source
Version: 1.81.6-16
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Boyuan Yang <byang@debian.org>
Closes: 497342 891174 958595
Changes:
 nvi (1.81.6-16) unstable; urgency=medium
 .
   * QA upload.
 .
   [ Boyuan Yang ]
   * debian/control: Clean-up build-dependency on transitional
     packages.
   * debian/patches/32: Add patch to fix ETXTBSY when executing
     nvi-opened files. (Closes: #891174, #497342)
   * debian/copyright: Fix DEP5 format.
   * debian/control: Add missing ${misc:Pre-Depends} placeholder.
 .
   [ Debian Janitor ]
   * Use versioned copyright format URI.
   * Wrap long lines in changelog entries: 1.79-20, 1.79-16.
   * Move source package lintian overrides to debian/source.
   * Bump debhelper from old 9 to 12.
     + Set debhelper-compat version in Build-Depends.
     - Drop old dh-systemd build-dependency. (Closes: #958595)
   * Set upstream metadata fields: Repository.
   * Rely on pre-initialized dpkg-architecture variables.
Checksums-Sha1:
 cf0c998fc52a70712421e71ce77ba98acf309adf 1860 nvi_1.81.6-16.dsc
 2ba0cc46b33fd95cf990dfe9beb36530e65cf0ea 77816 nvi_1.81.6-16.debian.tar.xz
 5cffbb6f79fef228d31851079ba0d120bcdfb7bc 6086 nvi_1.81.6-16_amd64.buildinfo
Checksums-Sha256:
 f758b75376820a7515cbeccde47b752ec781a68fb2d3b0088c0e1b2740144246 1860 nvi_1.81.6-16.dsc
 a76167baf1bb4c842ed5adb163783adf5f8b94419986b1b12b1333be95be880c 77816 nvi_1.81.6-16.debian.tar.xz
 74065112a82974029609d639cd236526976b3b2bd71c6bb2e79c593b01ec6aad 6086 nvi_1.81.6-16_amd64.buildinfo
Files:
 e12f4b43670ad53ca8e6c90411c6bb81 1860 editors optional nvi_1.81.6-16.dsc
 75fff17ab335621c89b036c4103271d2 77816 editors optional nvi_1.81.6-16.debian.tar.xz
 774d8bb8c787b19d150981c9306cdca3 6086 editors optional nvi_1.81.6-16_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfncpR22H1vEdkazLwpPntGGCWs4FAl6iH90ACgkQwpPntGGC
Ws5TOA/+IDXK2sPA2JjnfmsnWE+UlqJp6ijNn94JpHNlGC6E03q9n5obYDDpp3oy
g+TQhCuEqhKUI1FZWBCGuB1NbRsIwZMmzrkwVyFAllw89PJ6/vHiJBKiGTf3teo5
mAohDUJweHnSQ1XGRiuTrG7LhLUM8kUqsjFW5l/S1QWmhZf4upLUfR9wGYlpiS+R
mamBv+tGaoqlUWUSw4HkBez1YU5ZPyFK0ln4EH5Ipl830oLrC8nhsGZRNVfbBuk3
qx51HKVH/sITWl/chgQkcx9zsJcg5m0Wi/9VY3pqhVQLxfwC0nsVVPr7veMzsZFv
ngPrR9SoXAJweYOIaNyITvqolxtezlZE6iZmXVvDAwN4TKKFkNnmUaZ7Hn/Aekw4
H/jjW9n8ReicTlTFE9VNyIOTXY9UZ9qKz9u7L9OLgow+UcwBJXRwtkPMhLLkESeX
cJmOjpsPlqK5q4Fi8BvjSUuaUGMQM5u071YVkbxYb2ygrJQpHgVYYI0XIymUvZ+9
7BJ2zHIGVmGgSZtuRJf3BRjr8H6rK2bGsPOHqpDVyYKvf8eNf5efPE0nzS52yIoJ
sD3mpnF2PbWlrrDpYnpTHOo64fE5/faXXnJ8rWsxmAyv8+HqQPLYvlxCBPhiXFkO
f7WOBSRaWWUAMJZcLBttZ0eLENfinbXxFbqUlsqmPE1lP9RoZIM=
=5kmf
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: