From 768761820e8d7481c586c4e0ab4ac7cb36d18c4b Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 17 Nov 1998 20:50:07 +0000 Subject: Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls. Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy. (This used to be commit 18ff93a9abbf68ee8c59c0af3e57c63e4a015dac) --- source3/smbd/chgpasswd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/smbd/chgpasswd.c') diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c index 52ca364070..69ac69b59b 100644 --- a/source3/smbd/chgpasswd.c +++ b/source3/smbd/chgpasswd.c @@ -65,7 +65,7 @@ static int findpty(char **slave) #endif /* !HAVE_GRANTPT */ #if defined(HAVE_GRANTPT) - if ((master = open("/dev/ptmx", O_RDWR)) >= 1) { + if ((master = sys_open("/dev/ptmx", O_RDWR, 0)) >= 1) { grantpt(master); unlockpt(master); *slave = ptsname(master); @@ -90,7 +90,7 @@ static int findpty(char **slave) DEBUG(3,("pty: try to open %s, line was %s\n", dpname, line ) ); line[8] = dpname[3]; line[9] = dpname[4]; - if ((master = open(line, O_RDWR)) >= 0) { + if ((master = sys_open(line, O_RDWR, 0)) >= 0) { DEBUG(3,("pty: opened %s\n", line ) ); line[5] = 't'; *slave = line; @@ -133,7 +133,7 @@ static int dochild(int master,char *slavedev, char *name, char *passwordprogram, } /* Open slave pty and acquire as new controlling terminal. */ - if ((slave = open(slavedev, O_RDWR)) < 0) { + if ((slave = sys_open(slavedev, O_RDWR, 0)) < 0) { DEBUG(3,("More weirdness, could not open %s\n", slavedev)); return(False); -- cgit