From 258e1266d5f66b18534fdfaa151a59993be2c72c Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Mon, 18 Mar 2013 12:01:17 +0000 Subject: Check if oname != iname. git-svn-id: svn://tug.org/texlive/trunk@29416 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/dvipsk/ChangeLog | 4 ++++ Build/source/texk/dvipsk/dvips.c | 14 ++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'Build/source/texk') diff --git a/Build/source/texk/dvipsk/ChangeLog b/Build/source/texk/dvipsk/ChangeLog index ca34c94b1f6..c2877de0933 100644 --- a/Build/source/texk/dvipsk/ChangeLog +++ b/Build/source/texk/dvipsk/ChangeLog @@ -1,3 +1,7 @@ +2013-03-18 Akira Kakuto + + * dvips.c: Check if oname != iname. + 2013-02-08 Peter Breitenlohner * Makefile.am (prologdir): Change texmf => texmf-dist. diff --git a/Build/source/texk/dvipsk/dvips.c b/Build/source/texk/dvipsk/dvips.c index 46f736e64b7..48a9a666ddb 100644 --- a/Build/source/texk/dvipsk/dvips.c +++ b/Build/source/texk/dvipsk/dvips.c @@ -1265,6 +1265,20 @@ default: #endif } /* dd(D_PATHS) */ #endif /* DEBUG */ + +/* + * Check if oname != iname + */ + if (iname && *iname && oname && *oname) { +#ifdef DOSISH + if (strcasecmp (iname, oname) == 0) { +#else + if (strcmp (iname, oname) == 0) { +#endif + fprintf (stderr, "! Output name should be different from input name.\n"); + exit (20); + } + } /* * Now we try to open the dvi file. */ -- cgit v1.2.3