[Rpm-maint] [rpm-software-management/rpm] paths[with spaces and square brackets] cannot be listed in %files (#1749)

Miro Hrončok notifications at github.com
Fri Aug 6 18:48:03 UTC 2021


Consider this spec file:

```
Name:           reproducer
Version:        0
Release:        0
Summary:        ...
License:        MIT
BuildArch:      noarch

%description
...

%prep

%install
touch '%{buildroot}/file[with spaces]'

%files
"/file[with spaces]"
```

RPM 4.16 and 4.17 will fail to build it with:

```
Processing files: reproducer-0-0.noarch
error: File not found: .../rpmbuild/BUILDROOT/reproducer-0-0.x86_64/file[with
error: Path is outside buildroot: spaces]
```

It seems that even thou the path is in `"` quotes, the spaces split it into multiple paths.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1749
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20210806/c5ca2540/attachment.html>


More information about the Rpm-maint mailing list