src: stop using O_DIRECTORY in resctrl
src: stop using O_DIRECTORY in resctrl

The O_DIRECTORY flag causes open() to return an error
if the filename is a directory. There's no obvious
reason why resctrl needs to use this, while the rest of
libvirt code does not. Removing it avoids build issues
on platforms where O_DIRECTORY is not defined, once we
remove GNULIB.

Reviewed-by: Pavel Hrdina <d4772d05997b8abf035041e3b4f4996380ea7e7a@redhat.com>
Signed-off-by: Daniel P. Berrangé <bb938cf255e055ff3507f2627d214e8e62118fcf@redhat.com>

jardasgit/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,libvirt/libvirt,nertpinx/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,zippy2/libvirt,libvirt/libvirt,olafhering/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,crobinso/libvirt,crobinso/libvirt,nertpinx/libvirt,zippy2/libvirt,jardasgit/libvirt,olafhering/libvirt,libvirt/libvirt,olafhering/libvirt,jfehlig/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,crobinso/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,jfehlig/libvirt,crobinso/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,libvirt/libvirt,olafhering/libvirt,jfehlig/libvirt,zippy2/libvirt