Re: [PATCH] virschematest: Replace g_lstat() with virFileIsLink()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 27, 2024 at 14:26:53 +0200, Michal Privoznik wrote:
> Inside of virschematest.c there's testSchemaDir() which iterates
> over dentries in given directory but skips some files: those
> without ".xml" suffix, hidden files, symlinks, etc.
> 
> Now, symlinks are detected as g_lstat() + S_ISLNK() combo which
> works, except it fails to compile on mingw where is no concept of
> symlinks. Replace the combo with a call to virFileIsLink() which
> at least allows us to compile cleanly on mingw.

Fixes: f997fcca71a16b102e6ee663a3fb86bed8de9d7d

> 
> Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx>
> ---

Reviewed-by: Peter Krempa <pkrempa@xxxxxxxxxx>



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux