[Bug find-debuginfo/32862] New: find-debuginfo doesn't handle spaces in path names

mark at klomp dot org sourceware-bugzilla@sourceware.org
Wed Apr 9 14:54:04 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=32862

            Bug ID: 32862
           Summary: find-debuginfo doesn't handle spaces in path names
           Product: debugedit
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: find-debuginfo
          Assignee: unassigned at sourceware dot org
          Reporter: mark at klomp dot org
                CC: debugedit at sourceware dot org
  Target Milestone: ---

This part will split file parts with spaces in them:

find "$RPM_BUILD_ROOT" ! -path "${debugdir}/*.debug" -type f \
( -perm -0100 -or -perm -0010 -or -perm -0001 ) \
-print | LC_ALL=C sort |
file -N -f - | sed -n -e 's/^(.):[ ].ELF., not stripped.*/\1/p' |
xargs --no-run-if-empty stat -c '%h %D_%i %n' |
while read nlinks inum f; do ...

The find and xargs parts could use -0 to use zero terminators instead of
newlines.

But the file part in between doesn't handle that.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list