~ubuntu-branches/ubuntu/trusty/rsync/trusty

« back to all changes in this revision

Viewing changes to testsuite/dir-sgid.test

  • Committer: Package Import Robot
  • Author(s): Paul Slootman
  • Date: 2013-10-27 12:01:10 UTC
  • mfrom: (1.1.13) (2.1.11 sid)
  • Revision ID: package-import@ubuntu.com-20131027120110-mpr03n5scqmf40mi
Tags: 3.1.0-2
fix build failure if zlib1g-dev package is not installed;
solved by building without the included zlib source and adding a
build-depends on zlib1g-dev >= 1:1.2.8
closes:32379

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
# Test that rsync obeys directory setgid. -- Matt McCutchen
7
7
 
8
 
. $srcdir/testsuite/rsync.fns
 
8
. $suitedir/rsync.fns
9
9
 
10
10
umask 077
11
11
 
26
26
echo "File!" >"$scratchdir/file"
27
27
echo "#!/bin/sh" >"$scratchdir/program"
28
28
mkdir "$scratchdir/dir"
29
 
chmod 2764 "$scratchdir/dir" || test_skipped "Can't chmod"
 
29
chmod u=rwx,g=rw,g+s,o=r "$scratchdir/dir" || test_skipped "Can't chmod"
30
30
chmod 664 "$scratchdir/file"
31
31
chmod 775 "$scratchdir/program"
32
32
[ -g "$scratchdir/dir" ] || test_skipped "The directory setgid bit vanished!"
35
35
 
36
36
# Test some target directories
37
37
testit setgid-off 700 rw------- rwx------ rwx------
38
 
testit setgid-on 2700 rw------- rwx------ rwx--S---
 
38
testit setgid-on u=rwx,g=rw,g+s,o-rwx rw------- rwx------ rwx--S---
39
39
 
40
40
# Hooray
41
41
exit 0