From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Federico Tedin Newsgroups: gmane.emacs.bugs Subject: bug#49723: 28.0.50; Test in coding.c for NUL bytes in filenames is not reliable Date: Thu, 16 Sep 2021 21:13:04 +0200 Message-ID: <87r1doxrjz.fsf@gmail.com> References: <83o8ary5kl.fsf@gnu.org> <87pmtbj81v.fsf@gmail.com> <8335q7c655.fsf@gnu.org> <87pmta6buq.fsf@gmail.com> <837dfgaerv.fsf@gnu.org> <8735q4zcdh.fsf@gmail.com> <87tuikl79i.fsf@gmx.de> <87y27wxt6c.fsf@gmail.com> <87ilz0l5fg.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11846"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: phst@google.com, 49723@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 16 21:14:44 2021 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 1mQwqJ-0002so-Jm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Sep 2021 21:14:43 +0200 Original-Received: from localhost ([::1]:40852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQwqI-000594-A1 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Sep 2021 15:14:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQwpe-00046J-K1 for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 15:14:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45044) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mQwpe-0006Qe-B3 for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 15:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mQwpd-0003zS-Tz for bug-gnu-emacs@gnu.org; Thu, 16 Sep 2021 15:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Federico Tedin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Sep 2021 19:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49723 X-GNU-PR-Package: emacs Original-Received: via spool by 49723-submit@debbugs.gnu.org id=B49723.163181959415248 (code B ref 49723); Thu, 16 Sep 2021 19:14:01 +0000 Original-Received: (at 49723) by debbugs.gnu.org; 16 Sep 2021 19:13:14 +0000 Original-Received: from localhost ([127.0.0.1]:56587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQwos-0003xs-Jj for submit@debbugs.gnu.org; Thu, 16 Sep 2021 15:13:14 -0400 Original-Received: from mail-wr1-f54.google.com ([209.85.221.54]:40448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mQwop-0003xb-O3 for 49723@debbugs.gnu.org; Thu, 16 Sep 2021 15:13:13 -0400 Original-Received: by mail-wr1-f54.google.com with SMTP id q26so11145201wrc.7 for <49723@debbugs.gnu.org>; Thu, 16 Sep 2021 12:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=dNKbItgY6fIOgdvSq1A3Plaa99cTKClO2hQb5JByy0A=; b=mJ6X7JTJBv9Q4YfqIboXNMPwT0DCotzmSO3F+5RczjQTARAaipXk+9Lu93BPWQAK56 lQkdUmHE15fl/ou3nc9p0oBhqGgpHtXrAUJ2eOCO0DjXtlgzRKEGYbC+uL3QW1oYu30T S5nvHZq0Bg9BcqoyJ75ng4q3pHGMrSswAazXoOSKRi36O04O+nziIqej5kvEF8BnC090 pm0AySTJ43bqIb3j6duEhde5VYT5+NWzVeSWTEyAdapx8blQeB9jfDNHR/b+hdfGT0Mg H28CCYwEGfOllORE/KEFLqrb+v71AqIydJ9zQD+w/s9OavnF4mVtwyeUooc1bjXcBPoN o5SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=dNKbItgY6fIOgdvSq1A3Plaa99cTKClO2hQb5JByy0A=; b=dUgeQ6eXAQdVYM6IBURgFqZcBJ10Q4QoLD2zR7hxyBhhNLM2Dgm/BUv3o2hr1E5H0i 8+9fTAKiXDu3FX8HdFfVrqxgsUGNQZm70wnwFiPgTP06wsLD/9wHAi+7IbqPkg6p4pR8 n7eSvAx4DXP2BRodvCZhDwTxQBseXZL5QsK71ER/LHmtEG+2brQtV3dkg9NRbGno7l2i U+yzk069LqB/PYgKqRHMC9IwQq7gT867XBaRXQnWBA1X3DgzUiq58VHtWGP8Z910+1RU udnyWAMw4nN7Avj5F0YvxgpYi11gckTF6mth03xZZJAprH5Nx4Udj5cXL1T25pNe7HVw jNRg== X-Gm-Message-State: AOAM533oQhUqneqTHzyuOtMJwFIto9VWtzuQie5AzlHlEdAo+rGRFhYU 2l7hu1hL7EtUyWepBf4Q8dSrSVWxfX7w8A== X-Google-Smtp-Source: ABdhPJzOntpbg/FiSSaakshoIMEJpVwaOuFHfFJTV4d97RoCSAAAJ04EWqIFZBPsJrzzwixIPlFugA== X-Received: by 2002:adf:c10b:: with SMTP id r11mr7962666wre.336.1631819585622; Thu, 16 Sep 2021 12:13:05 -0700 (PDT) Original-Received: from gehirn (ip5b4202e5.dynamic.kabel-deutschland.de. [91.66.2.229]) by smtp.gmail.com with ESMTPSA id x13sm4355002wrg.62.2021.09.16.12.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Sep 2021 12:13:05 -0700 (PDT) In-Reply-To: <87ilz0l5fg.fsf@gmx.de> (Michael Albinus's message of "Thu, 16 Sep 2021 20:51:47 +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" Xref: news.gmane.io gmane.emacs.bugs:214505 Archived-At: Michael Albinus writes: > I haven't checked yet what's needed. However, there are several > incarnations of `expand-file-name' implementation in Tramp, namely > > grep --color=auto -nH --null -E 'defun.+handle-expand-file-name' *.el > tramp.el3393:(defun tramp-handle-expand-file-name (name &optional dir) > tramp-gvfs.el1137:(defun tramp-gvfs-handle-expand-file-name (name &optional dir) > tramp-sh.el2683:(defun tramp-sh-handle-expand-file-name (name &optional dir) > tramp-smb.el736:(defun tramp-smb-handle-expand-file-name (name &optional dir) > tramp-sudoedit.el346:(defun tramp-sudoedit-handle-expand-file-name (name &optional dir) > > Best regards, Michael. Ouch, hadn't noticed those. I gave a look at the four I hadn't seen (gvfs, sh, smb and sudoedit) and it seems like all of them return expressions in the shape of: (expand-file-name xyz) or: (tramp-run-real-handler #'expand-file-name xyz) with xyz being a value derived from NAME or NAME and DIR. So in that case it seems like we would be covered by the changes in `expand-file-mode`.