[Bug 1993208] [NEW] ftw.h - incorrectly named macro

Iestyn Elfick 1993208 at bugs.launchpad.net
Mon Oct 17 20:34:17 UTC 2022


Public bug reported:

The macro nftw64 is defined twice in /usr/include/ftw.h.

The first definition is incorrect and should be "ftw64" not "nftw64":

--- a/ftw.h     2022-10-17 21:32:31.652502785 +0100
+++ b/ftw.h     2022-10-17 21:33:00.632687352 +0100
@@ -164,7 +164,7 @@
                       __ftw64_time64)
      __nonnull ((1, 2));
 #  else
-#   define nftw64 __nftw64_time64
+#   define ftw64 __ftw64_time64
 #  endif
 # endif
 #endif

This is simply based on the preceding redirect declaration:

extern int __REDIRECT (ftw64, (const char *__dir, __ftw64_func_t __func,
          int __descriptors),
         __ftw64_time64)

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libc6-dev 2.35-0ubuntu3.1
ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: Unity
Date: Mon Oct 17 21:27:14 2022
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.logrotate.d.apport: [modified]
mtime.conffile..etc.logrotate.d.apport: 2022-10-02T18:09:04.116941

** Affects: glibc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug jammy wayland-session

** Description changed:

  The macro nftw64 is defined twice in /usr/include/ftw.h.
  
  The first definition is incorrect and should be "ftw64" not "nftw64":
  
  --- a/ftw.h     2022-10-17 21:32:31.652502785 +0100
  +++ b/ftw.h     2022-10-17 21:33:00.632687352 +0100
  @@ -164,7 +164,7 @@
-                        __ftw64_time64)
-       __nonnull ((1, 2));
-  #  else
+                        __ftw64_time64)
+       __nonnull ((1, 2));
+  #  else
  -#   define nftw64 __nftw64_time64
  +#   define ftw64 __ftw64_time64
-  #  endif
-  # endif
-  #endif
+  #  endif
+  # endif
+  #endif
  
- This is simply based on the preceeding redirect declaration:
+ This is simply based on the preceding redirect declaration:
  
  extern int __REDIRECT (ftw64, (const char *__dir, __ftw64_func_t __func,
- 			       int __descriptors),
- 		       __ftw64_time64)
+           int __descriptors),
+          __ftw64_time64)
  
  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: libc6-dev 2.35-0ubuntu3.1
  ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
  Uname: Linux 5.15.0-50-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: Unity
  Date: Mon Oct 17 21:27:14 2022
  ProcEnviron:
-  TERM=xterm-256color
-  PATH=(custom, no user)
-  XDG_RUNTIME_DIR=<set>
-  LANG=en_GB.UTF-8
-  SHELL=/bin/bash
+  TERM=xterm-256color
+  PATH=(custom, no user)
+  XDG_RUNTIME_DIR=<set>
+  LANG=en_GB.UTF-8
+  SHELL=/bin/bash
  SourcePackage: glibc
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.logrotate.d.apport: [modified]
  mtime.conffile..etc.logrotate.d.apport: 2022-10-02T18:09:04.116941

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/1993208

Title:
  ftw.h - incorrectly named macro

Status in glibc package in Ubuntu:
  New

Bug description:
  The macro nftw64 is defined twice in /usr/include/ftw.h.

  The first definition is incorrect and should be "ftw64" not "nftw64":

  --- a/ftw.h     2022-10-17 21:32:31.652502785 +0100
  +++ b/ftw.h     2022-10-17 21:33:00.632687352 +0100
  @@ -164,7 +164,7 @@
                         __ftw64_time64)
        __nonnull ((1, 2));
   #  else
  -#   define nftw64 __nftw64_time64
  +#   define ftw64 __ftw64_time64
   #  endif
   # endif
   #endif

  This is simply based on the preceding redirect declaration:

  extern int __REDIRECT (ftw64, (const char *__dir, __ftw64_func_t __func,
            int __descriptors),
           __ftw64_time64)

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: libc6-dev 2.35-0ubuntu3.1
  ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
  Uname: Linux 5.15.0-50-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu82.1
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: Unity
  Date: Mon Oct 17 21:27:14 2022
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_GB.UTF-8
   SHELL=/bin/bash
  SourcePackage: glibc
  UpgradeStatus: No upgrade log present (probably fresh install)
  modified.conffile..etc.logrotate.d.apport: [modified]
  mtime.conffile..etc.logrotate.d.apport: 2022-10-02T18:09:04.116941

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1993208/+subscriptions




More information about the foundations-bugs mailing list