Re: [libvirt] [PATCH] Fix return value semantic of virFileMakePath

2011-07-06 Thread Matthias Bolte
2011/7/6 Eric Blake : > On 07/05/2011 03:04 PM, Matthias Bolte wrote: >> Some callers expected virFileMakePath to set errno, some expected >> it to return an errno value. Unify this to return 0 on success and >> -1 on error. Set errno to report detailed error information. >> >> Also Make virFileMak

Re: [libvirt] [PATCH] Fix return value semantic of virFileMakePath

2011-07-05 Thread Eric Blake
On 07/05/2011 03:04 PM, Matthias Bolte wrote: > Some callers expected virFileMakePath to set errno, some expected > it to return an errno value. Unify this to return 0 on success and > -1 on error. Set errno to report detailed error information. > > Also Make virFileMakePath report an error when s

[libvirt] [PATCH] Fix return value semantic of virFileMakePath

2011-07-05 Thread Matthias Bolte
Some callers expected virFileMakePath to set errno, some expected it to return an errno value. Unify this to return 0 on success and -1 on error. Set errno to report detailed error information. Also Make virFileMakePath report an error when stat fails with an errno different from ENOENT. --- src/