The following commit has been merged in the master branch:
commit c7ade13aa8ad04788efb9d8775f2f5ac6d484e98
Author: Guillem Jover <[email protected]>
Date: Mon Feb 22 05:11:29 2010 +0100
dpkg-deb: Change temporary directory suffix to dpkg-deb
Makes it more obvious who created the directory.
diff --git a/dpkg-deb/build.c b/dpkg-deb/build.c
index f06a277..d14f796 100644
--- a/dpkg-deb/build.c
+++ b/dpkg-deb/build.c
@@ -414,7 +414,7 @@ void do_build(const char *const *argv) {
/* Create a temporary file to store the control data in. Immediately unlink
* our temporary file so others can't mess with it.
*/
- tfbuf = path_make_temp_template("dpkg");
+ tfbuf = path_make_temp_template("dpkg-deb");
if ((gzfd= mkstemp(tfbuf)) == -1) ohshite(_("failed to make tmpfile
(control)"));
/* make sure it's gone, the fd will remain until we close it */
if (unlink(tfbuf)) ohshit(_("failed to unlink tmpfile (control), %s"),
@@ -463,7 +463,7 @@ void do_build(const char *const *argv) {
* can't mess with it. */
if (!oldformatflag) {
close(gzfd);
- tfbuf = path_make_temp_template("dpkg");
+ tfbuf = path_make_temp_template("dpkg-deb");
if ((gzfd= mkstemp(tfbuf)) == -1) ohshite(_("failed to make tmpfile
(data)"));
/* make sure it's gone, the fd will remain until we close it */
if (unlink(tfbuf)) ohshit(_("failed to unlink tmpfile (data), %s"),
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index 14145ec..3fd07e4 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -74,7 +74,7 @@ static void info_prepare(const char *const **argvp,
*debarp= *(*argvp)++;
if (!*debarp) badusage(_("--%s needs a .deb filename
argument"),cipaction->olong);
- dbuf = mkdtemp(path_make_temp_template("dpkg"));
+ dbuf = mkdtemp(path_make_temp_template("dpkg-deb"));
if (!dbuf)
ohshite(_("failed to create temporary directory"));
*directoryp= dbuf;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]