[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] tar not setting permissions on a directory in a restore hierar
From: |
Douglas Hoffman |
Subject: |
[Bug-tar] tar not setting permissions on a directory in a restore hierarchy when a filesystem is mounted on said directory |
Date: |
Wed, 22 Oct 2003 22:07:07 -0400 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I've observed an odd behavior where gnu tar (on Linux) does not
restore/change the permissions on a directory in the restore hierarchy
when a filesystem is mounted on said directory. However, if the same
directory exists without a file system mounted on it, tar correctly
sets the permissions. Is this the expected behavior of gnu tar?
Thanks in advance,
Doug
Brief Details...
# cd /root/test_dir
# tar -x -p -v -v -f test-tar.tar
drwx------ root/root 0 2003-10-17 03:43:17 ./
drwxr-xr-t root/root 0 2003-10-17 03:43:17 ./fail/
drwxr-xr-t root/root 0 2003-10-17 03:43:17 ./pass/
# ls -la
total 3
drwx------ 4 root root 96 Oct 17 03:44 .
drwx------ 22 root root 1176 Oct 17 03:44 ..
drwx------ 2 root root 40 Oct 17 03:44 fail
drwxr-xr-t 2 root root 48 Oct 17 03:44 pass
# df | grep tar
tmpfs 1031608 0 1031608 0%
/root/test-tar/fail
This happens with reiser, tmpfs, ext2 as well as with different chmod
bits on the 'fail' directory in the archive. I can post the script I
used to produce these results if necessary.
"If a grasshopper tries to fight a lawn mower, one may admire his
courage but not his judgment." - Hugh Farnham, Heinlein's Farnham's
Freehold
-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.2
iQA/AwUBP5c31LAlaN22L0tPEQKcVQCg56dcSm/cSUHacVkj1M8IMhP7fywAoL1m
ppdcH2SRaTcko8yAtMgX3UVI
=cU6Y
-----END PGP SIGNATURE-----
- [Bug-tar] tar not setting permissions on a directory in a restore hierarchy when a filesystem is mounted on said directory,
Douglas Hoffman <=