From 91702d637640aa010999abc7e8ce94927620a82b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Francesco=20Potort=C3=AC?= Date: Mon, 13 Sep 2004 19:57:25 +0000 Subject: [PATCH] (main): When relative file names are given as argument, make them relative to the current working dir, rather than relative to the output tags file, if the latter is in /dev. --- lib-src/etags.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index f68c2e2bb9..a6004a048a 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -40,7 +40,7 @@ * configuration file containing regexp definitions for etags. */ -char pot_etags_version[] = "@(#) pot revision number is 17.4"; +char pot_etags_version[] = "@(#) pot revision number is 17.5"; #define TRUE 1 #define FALSE 0 @@ -1314,7 +1314,9 @@ main (argc, argv) cwd = concat (oldcwd, "/", ""); free (oldcwd); } - if (streq (tagfile, "-")) + /* Relative file names are made relative to the current directory. */ + if (streq (tagfile, "-") + || strneq (tagfile, "/dev/", 5)) tagfiledir = cwd; else tagfiledir = absolute_dirname (tagfile, cwd); -- 2.20.1