summaryrefslogtreecommitdiffstats
path: root/tests/guests
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-02-08 18:05:29 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-02-09 15:46:14 +0000
commit24d7889eba3eb6ee2f37ed9d384aa8734ebad7b7 (patch)
tree6936e84655396daf54ceea3d77fe2d16811adfcf /tests/guests
parent016ae77e6c2331560a3716ea1ebae82f122b4909 (diff)
downloadlibguestfs-24d7889eba3eb6ee2f37ed9d384aa8734ebad7b7.tar.gz
libguestfs-24d7889eba3eb6ee2f37ed9d384aa8734ebad7b7.tar.xz
libguestfs-24d7889eba3eb6ee2f37ed9d384aa8734ebad7b7.zip
edit: Preserve file permissions, UID, GID, SELinux context on edited files. (RHBZ#788641)
Diffstat (limited to 'tests/guests')
-rwxr-xr-xtests/guests/guest-aux/make-fedora-img.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/guests/guest-aux/make-fedora-img.pl b/tests/guests/guest-aux/make-fedora-img.pl
index 6eeaa9ab..90010ef0 100755
--- a/tests/guests/guest-aux/make-fedora-img.pl
+++ b/tests/guests/guest-aux/make-fedora-img.pl
@@ -173,6 +173,8 @@ d
e
f
');
+$g->chown(10, 11, '/etc/test3');
+$g->chmod(0600, '/etc/test3');
$g->write('/bin/test1', 'abcdefg');
$g->write('/bin/test2', 'zxcvbnm');
$g->write('/bin/test3', '1234567');