summaryrefslogtreecommitdiff
path: root/source3/rpc_server/samr
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-03-28 12:48:00 +1100
committerAndrew Bartlett <abartlet@samba.org>2012-04-05 02:39:08 +0200
commitd166b798529dab4538054d0b68797c0cc17f34de (patch)
tree8bbdeba0c71b1819abe153e7bf3a2c024adc42cf /source3/rpc_server/samr
parent9cc056e567fe923bb3a19fce3828cdbea9a3d2f7 (diff)
downloadsamba-d166b798529dab4538054d0b68797c0cc17f34de.tar.gz
samba-d166b798529dab4538054d0b68797c0cc17f34de.tar.bz2
samba-d166b798529dab4538054d0b68797c0cc17f34de.zip
build: Remove sys_open wrapper
Diffstat (limited to 'source3/rpc_server/samr')
-rw-r--r--source3/rpc_server/samr/srv_samr_chgpasswd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/samr/srv_samr_chgpasswd.c b/source3/rpc_server/samr/srv_samr_chgpasswd.c
index 1e8b14ead7..b083fb94bf 100644
--- a/source3/rpc_server/samr/srv_samr_chgpasswd.c
+++ b/source3/rpc_server/samr/srv_samr_chgpasswd.c
@@ -74,7 +74,7 @@ static int findpty(char **slave)
#if defined(HAVE_GRANTPT)
/* Try to open /dev/ptmx. If that fails, fall through to old method. */
- if ((master = sys_open("/dev/ptmx", O_RDWR, 0)) >= 0) {
+ if ((master = open("/dev/ptmx", O_RDWR, 0)) >= 0) {
grantpt(master);
unlockpt(master);
line = (char *)ptsname(master);
@@ -114,7 +114,7 @@ static int findpty(char **slave)
line));
line[8] = dpname[3];
line[9] = dpname[4];
- if ((master = sys_open(line, O_RDWR, 0)) >= 0) {
+ if ((master = open(line, O_RDWR, 0)) >= 0) {
DEBUG(3, ("pty: opened %s\n", line));
line[5] = 't';
*slave = line;
@@ -158,7 +158,7 @@ static int dochild(int master, const char *slavedev, const struct passwd *pass,
}
/* Open slave pty and acquire as new controlling terminal. */
- if ((slave = sys_open(slavedev, O_RDWR, 0)) < 0)
+ if ((slave = open(slavedev, O_RDWR, 0)) < 0)
{
DEBUG(3, ("More weirdness, could not open %s\n", slavedev));
return (False);