Switch to unified view
a/src/utils/pxattr.cpp | b/src/utils/pxattr.cpp | ||
---|---|---|---|
... |
... |
||
324 | } |
324 | } |
325 | if (ret < 0) |
325 | if (ret < 0) |
326 | return false; |
326 | return false; |
327 | if (!buf.alloc(ret+1)) // NEEDED on FreeBSD (no ending null) |
327 | if (!buf.alloc(ret+1)) // NEEDED on FreeBSD (no ending null) |
328 | return false; |
328 | return false; |
329 | buf.buf[ret] = 0; |
||
329 | if (fd < 0) { |
330 | if (fd < 0) { |
330 | if (flags & PXATTR_NOFOLLOW) { |
331 | if (flags & PXATTR_NOFOLLOW) { |
331 | ret = extattr_list_link(path.c_str(), EXTATTR_NAMESPACE_USER, |
332 | ret = extattr_list_link(path.c_str(), EXTATTR_NAMESPACE_USER, |
332 | buf.buf, ret); |
333 | buf.buf, ret); |
333 | } else { |
334 | } else { |