From: Adam Heath Date: Sun, 15 Sep 2002 17:55:51 +0000 (+0000) Subject: Fix dereference in cu_closefd(), which was the cause of close(random X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd5a95893c13cf707d6b91684d2a312bdb65c074;p=dpkg Fix dereference in cu_closefd(), which was the cause of close(random number) on most arches, but close(0) on s390x. --- diff --git a/ChangeLog b/ChangeLog index 20e9f378..528ece68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Sep 15 12:48:36 CDT 2002 Adam Heath + + * main/help.c: Fix dereference in cu_closefd(), which was the cause of + close(random number) on most arches, but close(0) on s390x. + Sun Sep 15 12:43:00 CDT 2002 Adam Heath * version-nr, debian/changelog: Set 1.10.9 version. diff --git a/debian/changelog b/debian/changelog index d7942ccc..7fa50847 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,5 +1,8 @@ dpkg (1.10.9) unstable; urgency=low + * Fix dereference in main/help.c:cu_closefd(), which was the cause of + close(random number) on most arches, but close(0) on s390x. + -- Adam Heath UNRELEASED dpkg (1.10.8) unstable; urgency=low diff --git a/main/help.c b/main/help.c index 0af99c97..9cde30ce 100644 --- a/main/help.c +++ b/main/help.c @@ -135,7 +135,7 @@ void cu_closedir(int argc, void **argv) { } void cu_closefd(int argc, void **argv) { - int ip= *(int*)argv; + int ip= *(int*)argv[0]; close(ip); }