summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 1fc377f362..5c80a61511 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -855,10 +855,10 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
/* if the username exists as a domain/username pair on the unix system then use
that */
- if (!Get_Pwnam(user, False)) {
+ if (!getpwnam(user)) {
pstring user2;
slprintf(user2,sizeof(user2),"%s/%s", domain, user);
- if (Get_Pwnam(user2, True)) {
+ if (getpwnam(user2)) {
DEBUG(3,("Using unix username %s\n", user2));
pstrcpy(user, user2);
}