Fixed a number of issues put into light by clang on FreeBSD 10

This commit is contained in:
Jean-Francois Dockes
2013-10-29 15:01:59 +01:00
parent a75d4c24ff
commit bb284d088e
7 changed files with 13 additions and 14 deletions
+1
View File
@@ -326,6 +326,7 @@ list(int fd, const string& path, vector<string>* names, flags flags, nspace dom)
return false;
if (!buf.alloc(ret+1)) // NEEDED on FreeBSD (no ending null)
return false;
buf.buf[ret] = 0;
if (fd < 0) {
if (flags & PXATTR_NOFOLLOW) {
ret = extattr_list_link(path.c_str(), EXTATTR_NAMESPACE_USER,