Re: [PATCH] Change mutt_buffer_concatn_path() to use fixed algorithm.
"Kevin J. McCarthy" <[email protected]> Tue, 19 May 2026 14:44:22 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <agwGxt-QZEq-RCVD@qinghai> |
On Tue, May 19, 2026 at 01:56:45PM +0800, Kevin J. McCarthy wrote: >*** This commit, however does cause a CHANGE OF BEHAVIOR. *** > >When the dir part is empty, the old algorithm concatn_path combines: > "" + "dir" => "dir" > >The new algorithm, now using mutt_buffer_concat_path, combines: > "" + "dir" => "/dir" In defense of this change, however, I'll note that the existing code calling mutt_buffer_concat_path(), has always had this behavior, even before this previous fixes. And so there are other places in the code which have always had this behavior, such as in init.c and hook.c. This update is changing mutt_buffer_concatn_path() to have that same behavior. The only difference is that it's at a user-interface prompt. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmoMBsYACgkQre92hIAx a9ovtQ/+MBtp5V6nbbDPJ6Qrc1acnhQiTHe9BajONoHrxZHDDjl+vbD+PwLIBXRk ygtCyDVjLI6zg8G+hc3OCHaGmZFYNTNr8IyocVWwRt3r8je8u2Oe1cF2BHoGTZMJ zr2FAcNQrMduI7scLRxDn52P9lUa+o5fxu+n4XymxX2I9KtBLRuT6G0mOqYYdP1F /Owur5IdOsWziTy4xZprUiFJ8Lsw1COWQV6ijO4VfNs83wbr6ZDuXk9tRsaudDPB DhNGcmZzEAoQWDBfOgQOln7qw7pil+rrbFaO2RgehgGNM1EStr4slvmRMauD2yPb usDzHC2Vkr+lRNTD+YgNtgp3BNLWdgX/Qw6CiL1YMAO/7OsudJMw4Ij6d6v4JgqA W+QJExAV2txAfBQFUAJwu7cT/GaVbx6+qUoPCbyQ9KnfL09l9c/otspRGqDByDQ6 oW5mcs8NwXCyJk5NuuqcBwMeuY/QVHY9pWQKodolxB2c9SPYV8XAcKPirzl7U3TE 5US6t4KzQtxtwI+wsMwV+OzX/vNPwb0JoC2/PY0YipOWVoTZYs5jYh/vcO1KwaoO 9K9XqHydq/tFz6Twwbeqc3FBuLvNYTC+SSMDXDPqf2+24IYyR18jdxJvOT95LSHS 0Xqd7JxRuO6DQb55HP9elQfm7bypRVMO+miWgrkHgmocI9zUFVA= =8eFi -----END PGP SIGNATURE-----