The following commit has been merged in the master branch:
commit bb6c5961bdf2b72b08bce367004dd1a65e71a725
Author: Guillem Jover <[email protected]>
Date: Mon Feb 22 05:09:47 2010 +0100
dpkg-deb: Make cu_info_prepare use ohshite instead of perror
Make the other error paths call ohshite instead of just perror and
returning or exiting manually.
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index 28b576d..14145ec 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -53,13 +53,14 @@ static void cu_info_prepare(int argc, void **argv) {
struct stat stab;
directory= (char*)(argv[0]);
- if (chdir("/")) { perror(_("failed to chdir to `/' for cleanup")); return; }
+ if (chdir("/"))
+ ohshite(_("failed to chdir to `/' for cleanup"));
if (lstat(directory,&stab) && errno==ENOENT) return;
c1 = subproc_fork();
if (!c1) {
execlp(RM, "rm", "-rf", directory, NULL);
- perror(_("failed to exec rm for cleanup")); _exit(1);
+ ohshite(_("failed to exec rm for cleanup"));
}
subproc_wait_check(c1, "rm cleanup", 0);
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]