[PATCH] resctrl: Do not open directory for writing
Ján Tomko
jtomko at redhat.com
Thu Jul 9 10:00:35 UTC 2020
On a Thursday in 2020, Martin Kletzander wrote:
>When preparing for the removal of GNULIB commit 18dca21a32e9 removed the
>unneeded O_DIRECTORY, but unfortunately started opening the directory for
>writing which fails every time for a directory. There is also no need for that
>as flock() works on O_RDONLY file descriptor as well, even for LOCK_EX.
>
>https://bugzilla.redhat.com/1852741
>
>Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
>---
> src/util/virresctrl.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Reviewed-by: Ján Tomko <jtomko at redhat.com>
Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200709/4d95fd78/attachment-0001.sig>
More information about the libvir-list
mailing list