diff options
author | Jeremy Allison <jra@samba.org> | 1998-11-13 21:41:01 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-11-13 21:41:01 +0000 |
commit | 8fc1504ff8204dd1ca735f31c769f6dadf0f88cb (patch) | |
tree | c8f269c0f415afebc4069aee335629a08d2e0916 /source3/groupdb | |
parent | e623b717502988f630a73a5e809c456b1839ebdb (diff) | |
download | samba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.tar.gz samba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.tar.bz2 samba-8fc1504ff8204dd1ca735f31c769f6dadf0f88cb.zip |
Makefile.in configure configure.in include/config.h.in: Changes for DGUX and UNIXWARE.
groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf.
include/includes.h: Fix YP problem.
include/smb.h: Fix ZERO_STRUCTP.
lib/util_sock.c: Added strerror() in debugs.
passdb/ldap.c: Don't use snprinf, use slprintf.
rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf.
script/installman.sh: DGUX changes.
smbd/open.c smbd/oplock.c: Fixed gcc warnings.
web/swat.c: Changes USER to SWAT_USER.
(This used to be commit 4c2b5a00983501e5d4aad1456ba8b5ab0dfd9b4c)
Diffstat (limited to 'source3/groupdb')
-rw-r--r-- | source3/groupdb/aliasdb.c | 2 | ||||
-rw-r--r-- | source3/groupdb/aliasfile.c | 2 | ||||
-rw-r--r-- | source3/groupdb/groupfile.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/groupdb/aliasdb.c b/source3/groupdb/aliasdb.c index 573736d7f5..e5e6ebfa53 100644 --- a/source3/groupdb/aliasdb.c +++ b/source3/groupdb/aliasdb.c @@ -170,7 +170,7 @@ static BOOL user_is_member(char *user_name, LOCAL_GRP_MEMBER *mem, int num_mem) { int i; pstring name; - snprintf(name, sizeof(name), "\\%s\\%s", global_sam_name, user_name); + slprintf(name, sizeof(name)-1, "\\%s\\%s", global_sam_name, user_name); for (i = 0; i < num_mem; i++) { diff --git a/source3/groupdb/aliasfile.c b/source3/groupdb/aliasfile.c index 0c1b3a3d81..4b8bbe3079 100644 --- a/source3/groupdb/aliasfile.c +++ b/source3/groupdb/aliasfile.c @@ -71,7 +71,7 @@ static BOOL make_alias_line(char *p, int max_len, { int i; int len; - len = snprintf(p, max_len, "%s:%s:%d:", als->name, als->comment, als->rid); + len = slprintf(p, max_len-1, "%s:%s:%d:", als->name, als->comment, als->rid); if (len == -1) { diff --git a/source3/groupdb/groupfile.c b/source3/groupdb/groupfile.c index 5f5a069f05..88d362e7d4 100644 --- a/source3/groupdb/groupfile.c +++ b/source3/groupdb/groupfile.c @@ -71,7 +71,7 @@ static BOOL make_group_line(char *p, int max_len, { int i; int len; - len = snprintf(p, max_len, "%s:%s:%d:", grp->name, grp->comment, grp->rid); + len = slprintf(p, max_len-1, "%s:%s:%d:", grp->name, grp->comment, grp->rid); if (len == -1) { |