]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Reduce code duplication in virFileMakePath(Helper)
authorMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 6 Jul 2011 13:39:21 +0000 (15:39 +0200)
committerMatthias Bolte <matthias.bolte@googlemail.com>
Wed, 6 Jul 2011 14:03:12 +0000 (16:03 +0200)
commitcd9a4232e5bc98afd8c3ae80f0b2230ab669c0db
treef0e70ed420ab0c54f32477f4e85821587a8b6086
parent2d2d6a01d7f108311b6ff32ac7d558abefec6798
Reduce code duplication in virFileMakePath(Helper)

Move stat and mkdir to virFileMakePathHelper.

Also use the stat result to detect whether the existing path
is a directory and set errno accordingly if it's not.
src/util/util.c