Displaying 2 results from an estimated 2 matches for "links_head".
2012 Jan 10
2
plug leaks in febootstrap
...46334bb318fad7a7b71900d6a3c11586b68f Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering at redhat.com>
Date: Tue, 10 Jan 2012 17:04:52 +0100
Subject: [PATCH 2/2] helper: fix no-op add_link function
* helper/ext2cpio.c (add_link): Don't leak just-allocated buffer.
Instead, link it into links_head list.
---
helper/ext2cpio.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/helper/ext2cpio.c b/helper/ext2cpio.c
index 2e8258f..82cc3b4 100644
--- a/helper/ext2cpio.c
+++ b/helper/ext2cpio.c
@@ -1,5 +1,5 @@
/* febootstrap-supermin-helper reimplementation in C.
- * Cop...
2014 Feb 25
2
[PATCH supermin v4] Supermin 5 rewrite.
...- input_file);
- curr += body_len;
-
- return buf;
-}
-
-struct links {
- struct links *next;
- unsigned long cpio_ino; /* fake ino from cpio file */
- int minor;
- int major;
- ext2_ino_t real_ino; /* real inode number on ext2 filesystem */
-};
-static struct links *links_head = NULL;
-
-/* If it's a hard link, return the linked inode number in the real
- * ext2 filesystem.
- *
- * Returns: 0 = not a hard link
- * 1 = possible unresolved hard link
- * inode number = resolved hard link to this inode
- */
-static ext2_ino_t
-maybe_link (void)
-{
- if...