]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Don't unnecessarily try to change a file context
authorMark McLoughlin <markmc@redhat.com>
Fri, 3 Jul 2009 10:27:46 +0000 (10:27 +0000)
committerMark McLoughlin <markmc@redhat.com>
Fri, 3 Jul 2009 10:27:46 +0000 (10:27 +0000)
commitadd254feeaa830dd5af1118c141cb140bf55b5a7
treefcd4c60411b258c50769809f002b19e424b5c643
parent547147084d03ebf30d09d242a5a721a4df664ffe
Don't unnecessarily try to change a file context

As pointed out by Tim Waugh here:

  https://bugzilla.redhat.com/507555

We shouldn't bother trying to set the context of a file if it already
matches what we want.

(Fixed to use STREQ() and not use tabs, as pointed out by danpb)

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
ChangeLog
src/security_selinux.c