1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Catching up with old patches. Add define for VERITAS quota support.

Check return in ldap.
Jeremy.
This commit is contained in:
Jeremy Allison 0001-01-01 00:00:00 +00:00
parent 5431bae894
commit 66eff26fc9
2 changed files with 10 additions and 0 deletions

View File

@ -1177,5 +1177,13 @@ time_t timegm(struct tm *tm);
#define strlen(x) valgrind_strlen(x)
#endif
/*
* Veritas File System. Often in addition to native.
* Quotas different.
*/
#if defined(HAVE_SYS_FS_VX_QUOTA_H)
#define VXFS_QUOTA
#endif
#endif /* _INCLUDES_H */

View File

@ -326,6 +326,8 @@ static struct berval *dup_berval(TALLOC_CTX *ctx, const struct berval *in_val)
if (!in_val) return NULL;
value = talloc_zero(ctx, sizeof(struct berval));
if (value == NULL)
return NULL;
if (in_val->bv_len == 0) return value;
value->bv_len = in_val->bv_len;