Accepting request 129093 from home:aspiers:branches:openSUSE:Tools

- Prevent local users from appearing as user/group owner in
  generated tar files (thanks bmwiedemann for this)

OBS-URL: https://build.opensuse.org/request/show/129093
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=48
This commit is contained in:
Adrian Schröter 2012-07-27 12:35:32 +00:00 committed by Git OBS Bridge
parent 66094849a2
commit 86c7651c97
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jul 27 11:16:47 UTC 2012 - aspiers@suse.com
- Prevent local users from appearing as user/group owner in
generated tar files (thanks bmwiedemann for this)
-------------------------------------------------------------------
Tue Jul 3 11:23:12 UTC 2012 - adrian@suse.de

View File

@ -457,8 +457,8 @@ prep_tree_for_tar () {
create_tar () {
TARFILE="${TAR_BASENAME}.tar"
TARPATH="$MYOUTDIR/$TARFILE"
debug tar cf "$TARPATH" $EXCLUDES $MYINCLUDES
safe_run tar cf "$TARPATH" $EXCLUDES $MYINCLUDES
debug tar --owner=root --group=root -cf "$TARPATH" $EXCLUDES $MYINCLUDES
safe_run tar --owner=root --group=root -cf "$TARPATH" $EXCLUDES $MYINCLUDES
echo "Created $TARFILE"
}