aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/term_ps.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-08-28 01:37:12 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-08-28 01:37:12 +0000
commit9e399dab99306e66a40f88f8b721c69c86b1247d (patch)
treebb62588bc337fb579bbfb80ae4b50a7698150539 /term_ps.c
parentbf3377730139f6ce0e4cee7bbd28e458631cd10d (diff)
downloadmandoc-9e399dab99306e66a40f88f8b721c69c86b1247d.tar.gz
mandoc-9e399dab99306e66a40f88f8b721c69c86b1247d.tar.zst
mandoc-9e399dab99306e66a40f88f8b721c69c86b1247d.zip
I just noticed that -Tps writes "%%CreationDate:" headers.
That's an unwelcome leak of potentially private information. Kill it with fire.
Diffstat (limited to 'term_ps.c')
-rw-r--r--term_ps.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/term_ps.c b/term_ps.c
index e9c23e72..e1803038 100644
--- a/term_ps.c
+++ b/term_ps.c
@@ -1,4 +1,4 @@
-/* $Id: term_ps.c,v 1.65 2014/08/24 23:43:13 schwarze Exp $ */
+/* $Id: term_ps.c,v 1.66 2014/08/28 01:37:12 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -25,7 +25,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <time.h>
#include <unistd.h>
#include "mandoc.h"
@@ -852,7 +851,6 @@ ps_end(struct termp *p)
static void
ps_begin(struct termp *p)
{
- time_t t;
int i;
/*
@@ -893,11 +891,8 @@ ps_begin(struct termp *p)
* stuff gets printed to the screen, so make sure we're sane.
*/
- t = time(NULL);
-
if (TERMTYPE_PS == p->type) {
ps_printf(p, "%%!PS-Adobe-3.0\n");
- ps_printf(p, "%%%%CreationDate: %s", ctime(&t));
ps_printf(p, "%%%%DocumentData: Clean7Bit\n");
ps_printf(p, "%%%%Orientation: Portrait\n");
ps_printf(p, "%%%%Pages: (atend)\n");