commit 8212840b56af2d6560f88c47f8850eaca75dc4bf
Author: Dan Gildea <dgildea>
Date:   Mon Sep 16 09:16:40 2024 +0200

    allow "-dir ." and "-rootdir ."
    
    Remove special casing for current directory.  I guess this was
    intended to keep people from overwriting files by accident - but
    it was not documented.

--- a/Changes
+++ b/Changes
@@ -112,6 +112,7 @@
 # A more detailed log history can be found within the particular files, near
 # the top.
 #
+#		- allow "-dir ." and "-rootdir ."
 #		- remove extra "showpage" from pstoimg
 #		  https://bugs.debian.org/1078536
 #		- remove svg from config for pstoimg
--- a/latex2html.pin
+++ b/latex2html.pin
@@ -782,8 +782,8 @@
 	$FILE =~ s/\.[^\.]*$//; ## AYS
 	$DESTDIR = ''; # start at empty
 	if ($FIXEDDIR) {
-	    $DESTDIR = $FIXEDDIR unless ($FIXEDDIR eq '.');
-	    if (($ROOTED)&&!($texfilepath eq $orig_cwd)) {
+	    $DESTDIR = $FIXEDDIR;
+	    if ($ROOTED) {
 		$DESTDIR .= $dd . $FILE unless $NO_SUBDIR;
 	    };
 	} elsif ($texfilepath eq $orig_cwd) {
