mirror of
https://github.com/samba-team/samba.git
synced 2025-12-06 16:23:49 +03:00
includes.h: Fixes for NetBSD and BSDI.
smbpass.c: Fixed irix warnings. Jeremy.
This commit is contained in:
@@ -508,6 +508,7 @@ char *mktemp(char *); /* No standard include */
|
|||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#define SIGNAL_CAST (void (*)())
|
#define SIGNAL_CAST (void (*)())
|
||||||
#define USE_DIRECT
|
#define USE_DIRECT
|
||||||
|
#define QSORT_CAST (int (*)(const void *, const void *))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@@ -521,6 +522,8 @@ char *mktemp(char *); /* No standard include */
|
|||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif /* NetBSD1_3 */
|
#endif /* NetBSD1_3 */
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
|
#include <netinet/in_systm.h>
|
||||||
|
#include <netinet/ip.h>
|
||||||
/* you may not need this */
|
/* you may not need this */
|
||||||
#define NO_GETSPNAM
|
#define NO_GETSPNAM
|
||||||
#define SIGNAL_CAST (void (*)())
|
#define SIGNAL_CAST (void (*)())
|
||||||
|
|||||||
@@ -475,7 +475,7 @@ Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
|
|||||||
|
|
||||||
new_entry_length = strlen(newpwd->smb_name) + 1 + 15 + 1 + 32 + 1 + 32 + 1 + 5 + 1 + 13 + 2;
|
new_entry_length = strlen(newpwd->smb_name) + 1 + 15 + 1 + 32 + 1 + 32 + 1 + 5 + 1 + 13 + 2;
|
||||||
|
|
||||||
if((new_entry = (unsigned char *)malloc( new_entry_length )) == NULL) {
|
if((new_entry = (char *)malloc( new_entry_length )) == NULL) {
|
||||||
DEBUG(0, ("add_smbfilepwd_entry(malloc): Failed to add entry for user %s to file %s. \
|
DEBUG(0, ("add_smbfilepwd_entry(malloc): Failed to add entry for user %s to file %s. \
|
||||||
Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
|
Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
|
||||||
endsmbfilepwent(fp);
|
endsmbfilepwent(fp);
|
||||||
@@ -483,7 +483,7 @@ Error was %s\n", newpwd->smb_name, pfile, strerror(errno)));
|
|||||||
}
|
}
|
||||||
|
|
||||||
slprintf(new_entry, new_entry_length - 1, "%s:%u:", newpwd->smb_name, (unsigned)newpwd->smb_userid);
|
slprintf(new_entry, new_entry_length - 1, "%s:%u:", newpwd->smb_name, (unsigned)newpwd->smb_userid);
|
||||||
p = (unsigned char *)&new_entry[strlen(new_entry)];
|
p = &new_entry[strlen(new_entry)];
|
||||||
|
|
||||||
if(newpwd->smb_passwd != NULL) {
|
if(newpwd->smb_passwd != NULL) {
|
||||||
for( i = 0; i < 16; i++) {
|
for( i = 0; i < 16; i++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user