The following commit has been merged in the master branch:
commit ac2874075efbdb8d5516a044b3ea14993b712c0e
Author: Guillem Jover <[email protected]>
Date: Tue Sep 15 18:51:37 2009 +0200
dpkg-deb: Pass last the node to add to add_to_filist
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index 0add640..8c2703d 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -161,7 +161,9 @@ static struct _finfo* getfi(const char* root, int fd) {
* After a _finfo struct is added to a list it may no longer be freed, we
* assume full responsibility for its memory.
*/
-static void add_to_filist(struct _finfo* fi, struct _finfo** start, struct
_finfo **end) {
+static void
+add_to_filist(struct _finfo **start, struct _finfo **end, struct _finfo *fi)
+{
if (*start==NULL)
*start=*end=fi;
else
@@ -469,7 +471,7 @@ void do_build(const char *const *argv) {
*/
while ((fi=getfi(directory, p3[0]))!=NULL)
if (S_ISLNK(fi->st.st_mode))
- add_to_filist(fi,&symlist,&symlist_end);
+ add_to_filist(&symlist, &symlist_end, fi);
else {
if (write(p1[1], fi->fn, strlen(fi->fn)+1) ==- 1)
ohshite(_("failed to write filename to tar pipe (data)"));
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]