From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9800: Incomplete truncated file buffers from the /proc filesystem Date: Sun, 12 Feb 2023 09:38:33 +0200 Message-ID: <838rh3ib9i.fsf@gnu.org> References: <877h40vb8h.fsf@mail.jurta.org> <83ehy8t6lo.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14596"; mail-complaints-to="usenet@ciao.gmane.io" Cc: juri@jurta.org, 9800@debbugs.gnu.org To: Andreas Schwab , Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 08:40:20 2023 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 1pR6yC-0003LB-8d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 08:40:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pR6xw-0006wB-Q1; Sun, 12 Feb 2023 02:40:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pR6xu-0006vw-TD for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 02:40:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pR6xu-0001dG-Dk for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 02:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pR6xu-0006Jt-7H for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 02:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2023 07:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9800 X-GNU-PR-Package: emacs Original-Received: via spool by 9800-submit@debbugs.gnu.org id=B9800.167618755424226 (code B ref 9800); Sun, 12 Feb 2023 07:40:02 +0000 Original-Received: (at 9800) by debbugs.gnu.org; 12 Feb 2023 07:39:14 +0000 Original-Received: from localhost ([127.0.0.1]:43928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR6x7-0006Ig-Kl for submit@debbugs.gnu.org; Sun, 12 Feb 2023 02:39:13 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR6x2-0006IQ-Rj for 9800@debbugs.gnu.org; Sun, 12 Feb 2023 02:39:11 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pR6wv-0001Xa-O7; Sun, 12 Feb 2023 02:39:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=wU1a8p32M3J0mYXBb72DkxxSqzuJxh5KFZGkOxI2zyk=; b=nzE5ujpSvybc mGTLzF2EHPfoYqPeUh5u9eiuXu21eZS69ft57ggEF8g2glGhSpNMPYzjydR1vrWhAGyoJzaIA0L3w NdMxyCrcu3e3MuxyONEu7JExP3NDe7HwWjHvv/G8FmBnwzjf+xtGFXXvinhuagQOIwzmOKvGUyc5+ 3tKJMciZKPDJocdk/KwgtA8fvMd5wDjUawGcPUT2XelXzoKjtLSj+aOvKrTVnsHcb1GeALI3c3v+S 5WtrmSJBR+wv5mUFOqTvZ86Smo/cvUHMx8XZ/HaMnQVVmMvxa0P9+iA86ahch1wGjBQqgt7lVAW2v 5lubp+Nzejxp6KYYrLNaHg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pR6wu-0004JQ-Cp; Sun, 12 Feb 2023 02:39:01 -0500 In-Reply-To: (message from Andreas Schwab on Thu, 20 Oct 2011 10:44:57 +0200) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255384 Archived-At: > From: Andreas Schwab > Date: Thu, 20 Oct 2011 10:44:57 +0200 > Cc: Juri Linkov , 9800@debbugs.gnu.org > > Eli Zaretskii writes: > > > Does lseek work on these files? > > No. The contents are completely dynamic, generated on-the-fly when > reading. > > > Or we could treat those files as non-regular, > > That is the only option. Are all the files in "/proc" of this nature? If so, we could consider all of the files in that directory non-regular; if that is all that's needed to visit /proc/foo files, insert-file-contents already has code to deal with non-regular files. Paul, do you see any downsides to such heuristic? We could make it a user option if the heuristic could sometimes backfire, I guess.