File: CVE-2025-40909-metaconfig-reorder.diff

package info (click to toggle)
perl 5.40.1-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 126,156 kB
  • sloc: ansic: 668,539; perl: 525,522; sh: 72,038; pascal: 6,925; xml: 2,428; yacc: 1,410; makefile: 1,191; cpp: 208; lisp: 1
file content (86 lines) | stat: -rw-r--r-- 2,456 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
From: Niko Tyni <ntyni@debian.org>
Date: Fri, 27 Jun 2025 17:58:05 +0300
Subject: Slightly reorder Configure and config_h.SH to match metaconfig
 output

Although these are originally generated files, they were changed upstream
before changing the generator (metaconfig). The resulting orderings don't
quite match.
---
 Configure   | 10 +++++-----
 config_h.SH | 13 +++++++------
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/Configure b/Configure
index 850b2f8..f30dba3 100755
--- a/Configure
+++ b/Configure
@@ -13343,10 +13343,6 @@ esac
 set i_fcntl
 eval $setvar
 
-: see if fdopendir exists
-set fdopendir d_fdopendir
-eval $inlibc
-
 : see if fork exists
 set fork d_fork
 eval $inlibc
@@ -14064,6 +14060,10 @@ eval $inlibc
 set fdim d_fdim
 eval $inlibc
 
+: see if fdopendir exists
+set fdopendir d_fdopendir
+eval $inlibc
+
 : see if fegetround exists
 set fegetround d_fegetround
 eval $inlibc
@@ -25037,6 +25037,7 @@ d_fd_macros='$d_fd_macros'
 d_fd_set='$d_fd_set'
 d_fdclose='$d_fdclose'
 d_fdim='$d_fdim'
+d_fdopendir='$d_fdopendir'
 d_fds_bits='$d_fds_bits'
 d_fegetround='$d_fegetround'
 d_ffs='$d_ffs'
@@ -25050,7 +25051,6 @@ d_flockproto='$d_flockproto'
 d_fma='$d_fma'
 d_fmax='$d_fmax'
 d_fmin='$d_fmin'
-d_fdopendir='$d_fdopendir'
 d_fork='$d_fork'
 d_fp_class='$d_fp_class'
 d_fp_classify='$d_fp_classify'
diff --git a/config_h.SH b/config_h.SH
index ffaab1f..6397232 100755
--- a/config_h.SH
+++ b/config_h.SH
@@ -142,12 +142,6 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_fcntl HAS_FCNTL		/**/
 
-/* HAS_FDOPENDIR:
- * This symbol, if defined, indicates that the fdopendir routine is
- * available to open a directory descriptor.
- */
-#$d_fdopendir HAS_FDOPENDIR		/**/
-
 /* HAS_FGETPOS:
  *	This symbol, if defined, indicates that the fgetpos routine is
  *	available to get the file position indicator, similar to ftell().
@@ -2526,6 +2520,13 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un
  */
 #$d_fdim HAS_FDIM		/**/
 
+/* HAS_FDOPENDIR:
+ *	This symbol, if defined, indicates that the fdopendir() routine is
+ *	available to open directories using an opened file descriptor already
+ *	referring to that directory.
+ */
+#$d_fdopendir HAS_FDOPENDIR		/**/
+
 /* HAS_FEGETROUND:
  *	This symbol, if defined, indicates that the fegetround routine is
  *	available to return the macro corresponding to the current rounding