14762e9fa9
This fixes invalid cpio entries for `/dir/.*' constructs. Consider this: %install install -pD /dev/null %buildroot/root/.bashrc %files /root/.* Old behaviour: $ rpm -qlvp /home/at/RPM/RPMS/athlon/test-1.0-alt1.athlon.rpm drwxr-xr-x 2 root root 0 Mar 30 01:47 /root/. drwxr-xr-x 2 root root 0 Mar 30 01:47 /root/.. drwxr-xr-x 2 root root 0 Mar 30 01:47 /root/../root -rwxr-xr-x 1 root root 0 Mar 29 16:51 /root/../root/.bashrc -rwxr-xr-x 1 root root 0 Mar 29 16:51 /root/./.bashrc -rwxr-xr-x 1 root root 0 Mar 29 16:51 /root/.bashrc $ New behaviour: $ LD_LIBRARY_PATH=... rpm -bi test.spec ... Processing files: test-1.0-alt1 error: File path must be canonical: /root/. error: File path must be canonical: /root/.. RPM build errors: File path must be canonical: /root/. File path must be canonical: /root/.. $ The problem here is that glob(3) `dir/.*' globs both '.' and '..'. It is not clear whether or not glob(3) should glob '.' and '..'. $ bash -c 'echo /var/empty/.*' /var/empty/. /var/empty/.. $ ksh -c 'echo /var/empty/.*' /var/empty/.* $ |
||
---|---|---|
autodeps | ||
build | ||
doc | ||
lib | ||
po | ||
python | ||
rpmdb | ||
rpmio | ||
scripts | ||
tests | ||
tools | ||
.cvsignore | ||
.gear-rules | ||
.lclintrc | ||
ABOUT-NLS | ||
build.c | ||
build.h | ||
CHANGES | ||
config.site | ||
configure.in | ||
COPYING | ||
CREDITS | ||
debug.h | ||
Doxyfile.in | ||
Doxyheader | ||
gendiff | ||
GROUPS | ||
INSTALL | ||
install-sh | ||
installplatform | ||
macros.in | ||
Makefile.am | ||
missing | ||
mkinstalldirs | ||
platform.in | ||
README | ||
README.ALT-ru_RU.KOI8-R | ||
README.amiga | ||
rpm2cpio.c | ||
rpm-4_0.spec | ||
rpm-build.buildreq | ||
RPM-GPG-KEY | ||
RPM-PGP-KEY | ||
rpm.magic | ||
rpm.spec.in | ||
rpminit | ||
rpminit.1 | ||
rpmpopt.in | ||
rpmqv.c | ||
rpmrc.in | ||
system.h | ||
TODO |
This is RPM, the Red Hat Package Manager. The latest releases are always available at: ftp://ftp.rpm.org/pub/rpm Additional RPM documentation (papers, slides, HOWTOs) can also be found at the same site, as well as http://www.rpm.org. There is a mailing list for discussion of RPM issues, rpm-list@redhat.com. To subscribe, send a message to rpm-list-request@redhat.com with the word "subscribe" in the subject line. RPM was originally written by: Erik Troan <ewt@redhat.com> Marc Ewing <marc@redhat.com> See the CREDITS file for a list of folks who have helped us out tremendously. RPM is Copyright (c) 1998 by Red Hat Software, Inc., and may be distributed under the terms of the GPL and LGPL (see the file COPYING for details).