rpm/rpm-5.1.6-source_set_packager_owner.patch

16 lines
629 B
Diff

diff -Nru rpm-5.1.6.orig/build/files.c rpm-5.1.6/build/files.c
--- rpm-5.1.6.orig/build/files.c 2009-01-01 18:19:43.000000000 +0100
+++ rpm-5.1.6/build/files.c 2009-01-01 18:27:24.000000000 +0100
@@ -2759,8 +2759,9 @@
flp->uname = fl.def_ar.ar_user ? getUnameS(fl.def_ar.ar_user) : getUname(flp->fl_uid);
flp->gname = fl.def_ar.ar_group ? getGnameS(fl.def_ar.ar_group) : getGname(flp->fl_gid);
#else
- flp->uname = getUname(flp->fl_uid);
- flp->gname = getGname(flp->fl_gid);
+ /* set a standard owner and group */
+ flp->uname = "packager";
+ flp->gname = "packager";
#endif
flp->langs = xstrdup("");