From 1c275172cccc647bc9f165691564a014b6d5c507 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 16 Apr 1997 20:49:22 +0000 Subject: [PATCH] handle source files with bad owner/group CVS patchset: 1551 CVS date: 1997/04/16 20:49:22 --- build/files.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build/files.c b/build/files.c index 0e7067b..5e2caf7 100644 --- a/build/files.c +++ b/build/files.c @@ -327,6 +327,8 @@ int process_filelist(Header header, struct PackageRec *pr, fest->gname = getGname(fest->statbuf.st_gid); if (! (fest->uname && fest->gname)) { rpmError(RPMERR_BADSPEC, "Bad owner/group: %s", filename); + fest->uname = ""; + fest->gname = ""; processFileListFailed = 1; } strcpy(fest->file, filename); @@ -693,6 +695,8 @@ static int add_file(struct file_entry **festack, const char *name, if (! (p->uname && p->gname)) { rpmError(RPMERR_BADSPEC, "Bad owner/group: %s\n", fullname); + p->uname = ""; + p->gname = ""; return 0; } -- 2.7.4