* dump_setup.cc (check_package_files): Strip leading / and ./ from

package file names.
This commit is contained in:
Corinna Vinschen 2003-08-17 17:26:08 +00:00
parent 22d82f9f46
commit 919497ee6b
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-08-17 David Rothenberger <daveroth@acm.org>
* dump_setup.cc (check_package_files): Strip leading / and ./ from
package file names.
2003-08-16 David Rothenberger <daveroth@acm.org>
* dump_setup.cc (package_find): Don't stop searching on missing

View File

@ -276,6 +276,12 @@ check_package_files (int verbose, char *package)
while (fgets (buf, MAX_PATH, fp))
{
char *filename = strtok(buf, "\n");
if (*filename == '/')
++filename;
else if (!strncmp (filename, "./", 2))
filename += 2;
if (filename[strlen (filename) - 1] == '/')
{
if (!directory_exists (verbose, filename, package))