texlive[63131] Build/source/texk/web2c/lib: doc about looking in
commits+karl at tug.org
commits+karl at tug.org
Mon Apr 25 19:52:44 CEST 2022
Revision: 63131
http://tug.org/svn/texlive?view=revision&revision=63131
Author: karl
Date: 2022-04-25 19:52:44 +0200 (Mon, 25 Apr 2022)
Log Message:
-----------
doc about looking in output_directory
Modified Paths:
--------------
trunk/Build/source/texk/web2c/lib/ChangeLog
trunk/Build/source/texk/web2c/lib/texmfmp.c
Modified: trunk/Build/source/texk/web2c/lib/ChangeLog
===================================================================
--- trunk/Build/source/texk/web2c/lib/ChangeLog 2022-04-24 23:49:07 UTC (rev 63130)
+++ trunk/Build/source/texk/web2c/lib/ChangeLog 2022-04-25 17:52:44 UTC (rev 63131)
@@ -1,3 +1,7 @@
+2022-04-25 Karl Berry <karl at freefriends.org>
+
+ * texmfmp.c (find_input_file): doc fix.
+
2022-03-21 Karl Berry <karl at tug.org>
* TL'22 release.
Modified: trunk/Build/source/texk/web2c/lib/texmfmp.c
===================================================================
--- trunk/Build/source/texk/web2c/lib/texmfmp.c 2022-04-24 23:49:07 UTC (rev 63130)
+++ trunk/Build/source/texk/web2c/lib/texmfmp.c 2022-04-25 17:52:44 UTC (rev 63131)
@@ -3414,12 +3414,11 @@
#endif
/* Look in -output-directory first, if the filename is not
absolute. This is because we want the pdf* functions to
- be able to find the same files as \openin */
+ be able to find the same files as \openin. */
if (output_directory && !kpse_absolute_p (filename, false)) {
- string pathname;
-
- pathname = concat3(output_directory, DIR_SEP_STRING, filename);
- if (!access(pathname, R_OK) && !dir_p (pathname)) {
+ string pathname = concat3(output_directory, DIR_SEP_STRING, filename);
+ /* If there happens to be a directory by that name, never mind. */
+ if (access(pathname, R_OK) == 0 && !dir_p (pathname)) {
#if IS_pTeX && !defined(WIN32)
if (fname1) free(filename);
#endif
More information about the tex-live-commits
mailing list.