diff options
author | Guillem Jover <guillem@debian.org> | 2014-10-06 03:18:04 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2014-10-06 03:20:48 +0200 |
commit | 50d95392fb8efc3f4691535350a6908838ad5a78 (patch) | |
tree | f20ea4be76e4f8dab503411589cebe6feb7281f9 /lib | |
parent | 36f8d0019d9fbe3b2ce23a341887ebe33c94ca88 (diff) | |
download | dpkg-50d95392fb8efc3f4691535350a6908838ad5a78.tar.gz |
libdpkg: Set umask to the expected value of 0022 in tar test case
There's no guarantee the build system will have the same umask as any
other system. Make sure to set it to what we expect.
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/dpkg/test/t-tar.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/dpkg/test/t-tar.t b/lib/dpkg/test/t-tar.t index bb536d964..dbbda5df6 100755 --- a/lib/dpkg/test/t-tar.t +++ b/lib/dpkg/test/t-tar.t @@ -32,6 +32,9 @@ my $srcdir = $ENV{srcdir} || '.'; my $builddir = $ENV{builddir} || '.'; my $tmpdir = 't.tmp/t-tar'; +# Set a known umask. +umask 0022; + sub create { my ($pathname) = @_; |