diff options
author | jbj <devnull@localhost> | 2004-10-13 21:03:29 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2004-10-13 21:03:29 +0000 |
commit | 47ea5da7dd42de36b235b688205fb35f53e3cad6 (patch) | |
tree | 8e52924f54da0ae68db24a00f438a10101afda01 /build/files.c | |
parent | 5c095b4d656f6429700b1c585060b05308dd49e7 (diff) | |
download | librpm-tizen-47ea5da7dd42de36b235b688205fb35f53e3cad6.tar.gz librpm-tizen-47ea5da7dd42de36b235b688205fb35f53e3cad6.tar.bz2 librpm-tizen-47ea5da7dd42de36b235b688205fb35f53e3cad6.zip |
- silently add default %defattr(-,root,root) for all packages.
CVS patchset: 7461
CVS date: 2004/10/13 21:03:29
Diffstat (limited to 'build/files.c')
-rw-r--r-- | build/files.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/build/files.c b/build/files.c index d95d3ab7b..cd3c01366 100644 --- a/build/files.c +++ b/build/files.c @@ -93,14 +93,23 @@ typedef struct FileListRec_s { /** */ typedef struct AttrRec_s { +/*@null@*/ const char *ar_fmodestr; +/*@null@*/ const char *ar_dmodestr; +/*@null@*/ const char *ar_user; +/*@null@*/ const char *ar_group; mode_t ar_fmode; mode_t ar_dmode; } * AttrRec; +/*@-readonlytrans@*/ +/*@unchecked@*/ /*@observer@*/ +static struct AttrRec_s root_ar = { NULL, NULL, "root", "root", 0, 0 }; +/*@=readonlytrans@*/ + /* list of files */ /*@unchecked@*/ /*@only@*/ /*@null@*/ static StringBuf check_fileList = NULL; @@ -1991,6 +2000,7 @@ static int processPackageFiles(Spec spec, Package pkg, nullAttrRec(&fl.cur_ar); nullAttrRec(&fl.def_ar); + dupAttrRec(&root_ar, &fl.def_ar); /* XXX assume %defattr(-,root,root) */ fl.defVerifyFlags = RPMVERIFY_ALL; fl.nLangs = 0; |