summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorroot <devnull@localhost>1997-04-16 20:49:22 +0000
committerroot <devnull@localhost>1997-04-16 20:49:22 +0000
commit1c275172cccc647bc9f165691564a014b6d5c507 (patch)
tree50e5b20c338ce99b6fd744ce4c14366d840a8bc6 /build
parentf31e630997775b12769528f7af64853d66969085 (diff)
downloadlibrpm-tizen-1c275172cccc647bc9f165691564a014b6d5c507.tar.gz
librpm-tizen-1c275172cccc647bc9f165691564a014b6d5c507.tar.bz2
librpm-tizen-1c275172cccc647bc9f165691564a014b6d5c507.zip
handle source files with bad owner/group
CVS patchset: 1551 CVS date: 1997/04/16 20:49:22
Diffstat (limited to 'build')
-rw-r--r--build/files.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/build/files.c b/build/files.c
index 0e7067bc7..5e2caf77d 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;
}