summaryrefslogtreecommitdiff
path: root/dpkg-deb
diff options
context:
space:
mode:
authorAdam Heath <doogie@debian.org>2001-04-23 07:21:00 +0000
committerAdam Heath <doogie@debian.org>2001-04-23 07:21:00 +0000
commitecb9054f73b151acfa0fa81f1e89ce85ce8350c4 (patch)
tree7d146df4c0dfacb0175c459b82eca5d74a2f2e23 /dpkg-deb
parentcb7d4462eb2cfa8d62ae2d479b2c8c8ba0936e12 (diff)
downloaddpkg-ecb9054f73b151acfa0fa81f1e89ce85ce8350c4.tar.gz
Add comments telling why we use tempnam() and tmpnam().
Diffstat (limited to 'dpkg-deb')
-rw-r--r--dpkg-deb/info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index 01e36cba1..00e3e1be1 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -64,6 +64,7 @@ static void info_prepare(const char *const **argvp,
*debarp= *(*argvp)++;
if (!*debarp) badusage(_("--%s needs a .deb filename argument"),cipaction->olong);
+ /* This created a temporary directory, so ignore the warning. */
if ((dbuf= tempnam(NULL,"dpkg")) == NULL)
ohshite(_("failed to make temporary filename"));
*directoryp= dbuf;