unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 5cd0efc3ce9494f484b7ddda85c0642430288d77 962 bytes (raw)
name: gnu/packages/patches/ecl-fix-si-readlink.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
--- a/src/c/unixfsys.d	2016-02-25 02:06:19.000000000 -0500
+++ b/src/c/unixfsys.d	2016-10-07 00:50:20.172282246 -0400
@@ -236,15 +236,15 @@ static cl_object
 si_readlink(cl_object filename) {
         /* Given a filename which is a symlink, this routine returns
          * the value of this link in the form of a pathname. */
-        cl_index size = 128, written;
+        cl_index size = 0, written;
         cl_object output, kind;
         do {
+                size += 128;
                 output = ecl_alloc_adjustable_base_string(size);
                 ecl_disable_interrupts();
                 written = readlink((char*)filename->base_string.self,
                                    (char*)output->base_string.self, size);
                 ecl_enable_interrupts();
-                size += 256;
         } while (written == size);
         output->base_string.self[written] = '\0';
         kind = file_kind((char*)output->base_string.self, FALSE);

debug log:

solving 5cd0efc ...
found 5cd0efc in https://yhetil.org/guix-devel/20161007040724.6b28b18d@uwaterloo.ca/

applying [1/1] https://yhetil.org/guix-devel/20161007040724.6b28b18d@uwaterloo.ca/
diff --git a/gnu/packages/patches/ecl-fix-si-readlink.patch b/gnu/packages/patches/ecl-fix-si-readlink.patch
new file mode 100644
index 0000000..5cd0efc

Checking patch gnu/packages/patches/ecl-fix-si-readlink.patch...
Applied patch gnu/packages/patches/ecl-fix-si-readlink.patch cleanly.

index at:
100644 5cd0efc3ce9494f484b7ddda85c0642430288d77	gnu/packages/patches/ecl-fix-si-readlink.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).