[PATCH 3/4] lib: Replace virFileMakePath() with g_mkdir_with_parents()

Ján Tomko jtomko at redhat.com
Thu Mar 4 17:05:47 UTC 2021


On a Monday in 2021, Michal Privoznik wrote:
>Generated using the following spatch:
>
>  @@
>  expression path;
>  @@
>  - virFileMakePath(path)
>  + g_mkdir_with_parents(path, 0777)
>
>However, 14 occurrences were not replaced, e.g. in
>virHostdevManagerNew(). I don't really understand why.

d/I don't really understand why./

No need to make that statement a part of the git history.

Sometimes coccinelle (the semantic patching software)
can't understand a function or a file, so it leaves it alone.

Jano

>Fixed by hand afterwards.
>
>Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>---
-------------- 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/20210304/0a2603bd/attachment-0001.sig>


More information about the libvir-list mailing list