root 78a5862
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
root 78a5862
#
root 78a5862
#   Makefile of setting-group-acls
root 78a5862
#   Description: If you are using the -A/--acls option and you are not running as root and are not using the --numeric-ids option then if you have an ACL that includes a group entry for a group you are not a member of on the receiving side, then acl_set_file will return EINVAL, b/c rsync mistakenly maps the group name to gid GID_NONE (-1), which (fortunately) fails.
root 78a5862
#   Author: Ales Marecek <amarecek@redhat.com>
root 78a5862
#
root 78a5862
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
root 78a5862
#
root 78a5862
#   Copyright (c) 2011 Red Hat, Inc. All rights reserved.
root 78a5862
#
root 78a5862
#   This copyrighted material is made available to anyone wishing
root 78a5862
#   to use, modify, copy, or redistribute it subject to the terms
root 78a5862
#   and conditions of the GNU General Public License version 2.
root 78a5862
#
root 78a5862
#   This program is distributed in the hope that it will be
root 78a5862
#   useful, but WITHOUT ANY WARRANTY; without even the implied
root 78a5862
#   warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
root 78a5862
#   PURPOSE. See the GNU General Public License for more details.
root 78a5862
#
root 78a5862
#   You should have received a copy of the GNU General Public
root 78a5862
#   License along with this program; if not, write to the Free
root 78a5862
#   Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
root 78a5862
#   Boston, MA 02110-1301, USA.
root 78a5862
#
root 78a5862
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
root 78a5862
root 78a5862
export TEST=setting-group-acls
root 78a5862
export TESTVERSION=1.0
root 78a5862
root 78a5862
BUILT_FILES=
root 78a5862
root 78a5862
FILES=$(METADATA) runtest.sh Makefile PURPOSE
root 78a5862
root 78a5862
.PHONY: all install download clean
root 78a5862
root 78a5862
run: $(FILES) build
root 78a5862
	./runtest.sh
root 78a5862
root 78a5862
build: $(BUILT_FILES)
root 78a5862
	chmod a+x runtest.sh
root 78a5862
root 78a5862
clean:
root 78a5862
	rm -f *~ $(BUILT_FILES)
root 78a5862
root 78a5862
root 78a5862
include /usr/share/rhts/lib/rhts-make.include
root 78a5862
root 78a5862
$(METADATA): Makefile
root 78a5862
	@echo "Owner:           Ales Marecek <amarecek@redhat.com>" > $(METADATA)
root 78a5862
	@echo "Name:            $(TEST)" >> $(METADATA)
root 78a5862
	@echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
root 78a5862
	@echo "Path:            $(TEST_DIR)" >> $(METADATA)
root 78a5862
	@echo "Description:     If you are using the -A/--acls option and you are not running as root and are not using the --numeric-ids option then if you have an ACL that includes a group entry for a group you are not a member of on the receiving side, then acl_set_file will return EINVAL, b/c rsync mistakenly maps the group name to gid GID_NONE (-1), which (fortunately) fails." >> $(METADATA)
root 78a5862
	@echo "Type:            Regression" >> $(METADATA)
root 78a5862
	@echo "TestTime:        5m" >> $(METADATA)
root 78a5862
	@echo "RunFor:          rsync" >> $(METADATA)
root 78a5862
	@echo "Requires:        rsync" >> $(METADATA)
root 78a5862
	@echo "Requires:        acl" >> $(METADATA)
root 78a5862
	@echo "Priority:        Normal" >> $(METADATA)
root 78a5862
	@echo "License:         GPLv2" >> $(METADATA)
root 78a5862
	@echo "Confidential:    no" >> $(METADATA)
root 78a5862
	@echo "Destructive:     no" >> $(METADATA)
root 78a5862
root 78a5862
	rhts-lint $(METADATA)