[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30547: Hurd patch for `patch` does not apply to latest release
From: |
Manolis Ragkousis |
Subject: |
bug#30547: Hurd patch for `patch` does not apply to latest release |
Date: |
Tue, 20 Feb 2018 17:31:50 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hello Leo,
On 02/20/18 14:20, Leo Famulari wrote:
> There is a new version of GNU Patch, 2.7.6:
>
> https://ftp.gnu.org/gnu/patch/
>
> I noticed that our patch, 'patch-hurd-path-max.patch', doesn't apply. I
> have an idea of how to adapt the patch, but I don't really have a way to
> test it.
>
> Manolis, are you able to adapt the patch to Patch 2.7.6?
>
I rebased the patch on the latest patch master. The only thing I am not
sure is why the old patch was changing PATH_MAX with tost->st_size + 1.
I can't remember for the life of me. Also I can't remember why this
patch isn't part of patch upstream yet.
The old diff
- char *buffer = xmalloc (PATH_MAX);
+ char *buffer = xmalloc (tost->st_size + 1);
while now I made it:
- char *buffer = xmalloc (PATH_MAX + 1);
+ char *buffer = xmalloc (tost->st_size + 2);
Anyhow it should work now, can you try it?
Thank you!
Manolis
patch-hurd-path-max.patch
Description: Text Data