summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-04-18 02:09:50 +0000
committerLuke Leighton <lkcl@samba.org>2000-04-18 02:09:50 +0000
commit9ff032320da86c88b481f68886cdda713ed136fa (patch)
treed4f32527b1dfcaa2dc50f90df7bcb1865f77eaae /source3/smbd
parentbcaf1211f2f4450db48d98e703805191687cf86d (diff)
downloadsamba-9ff032320da86c88b481f68886cdda713ed136fa.tar.gz
samba-9ff032320da86c88b481f68886cdda713ed136fa.tar.bz2
samba-9ff032320da86c88b481f68886cdda713ed136fa.zip
ReadDirName calls vfs->readdirname calls dos_readdirname.
replaced with readdirname. ditto for OpenDir and CloseDir. (This used to be commit a0afe0d5f8378463b1e47cd779aee3af98c1940a)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/chgpasswd.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 4131ae61ca..df1f92f5ce 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -57,7 +57,7 @@ static int findpty(char **slave)
{
int master;
static fstring line;
- void *dirp;
+ DIR *dirp;
char *dpname;
#if defined(HAVE_GRANTPT)
@@ -86,10 +86,10 @@ static int findpty(char **slave)
fstrcpy(line, "/dev/ptyXX");
- dirp = OpenDir(NULL, "/dev", False);
+ dirp = opendir("/dev");
if (!dirp)
return (-1);
- while ((dpname = ReadDirName(dirp)) != NULL)
+ while ((dpname = readdirname(dirp)) != NULL)
{
if (strncmp(dpname, "pty", 3) == 0 && strlen(dpname) == 5)
{
@@ -103,12 +103,12 @@ static int findpty(char **slave)
DEBUG(3, ("pty: opened %s\n", line));
line[5] = 't';
*slave = line;
- CloseDir(dirp);
+ closedir(dirp);
return (master);
}
}
}
- CloseDir(dirp);
+ closedir(dirp);
return (-1);
}