The following commit has been merged in the master branch:
commit d75c567c6140efb6b019825155a1a70402534d87
Author: Guillem Jover <[email protected]>
Date: Sun Sep 6 02:34:35 2009 +0200
Do not check for fprintf return code when going to ohshit anyway
diff --git a/dpkg-deb/extract.c b/dpkg-deb/extract.c
index 166b143..0568534 100644
--- a/dpkg-deb/extract.c
+++ b/dpkg-deb/extract.c
@@ -241,10 +241,9 @@ void extracthalf(const char *debar, const char *directory,
} else {
if (!strncmp(versionbuf,"!<arch>",7)) {
- if (fprintf(stderr,
- _("dpkg-deb: file looks like it might be an archive which
has been\n"
- "dpkg-deb: corrupted by being downloaded in ASCII
mode\n"))
- == EOF) werr("stderr");
+ fprintf(stderr,
+ _("dpkg-deb: file looks like it might be an archive which has
been\n"
+ "dpkg-deb: corrupted by being downloaded in ASCII mode\n"));
}
ohshit(_("`%.255s' is not a debian format archive"),debar);
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index f421318..6f6ec84 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -111,8 +111,9 @@ static void info_spew(const char *debar, const char
*directory,
if (co) {
stream_fd_copy(co, 1, -1, _("info_spew"));
} else if (errno == ENOENT) {
- if (fprintf(stderr, _("dpkg-deb: `%.255s' contains no control component
`%.255s'\n"),
- debar, component) == EOF) werr("stderr");
+ fprintf(stderr,
+ _("dpkg-deb: `%.255s' contains no control component `%.255s'\n"),
+ debar, component);
re++;
} else {
ohshite(_("open component `%.255s' (in %.255s) failed in an unexpected
way"),
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]