1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

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

Check return in ldap.
Jeremy.
(This used to be commit e789edbb287319f52f49f2999917a610565144d9)
This commit is contained in:
Jeremy Allison 2002-12-30 23:55:58 +00:00
parent a2244a4eca
commit 944fb243eb
2 changed files with 10 additions and 0 deletions

View File

@ -1181,5 +1181,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;