diff options
author | Jeremy Allison <jra@samba.org> | 1999-05-05 18:32:52 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1999-05-05 18:32:52 +0000 |
commit | 6bff1d1fac1c93c0034e08258ec63f9c349488a8 (patch) | |
tree | 97da3f5b92320d6d1457a529e760aa7c757e462d | |
parent | 62ff34150969b0a5399810e83174ba918da4bf2a (diff) | |
download | samba-6bff1d1fac1c93c0034e08258ec63f9c349488a8.tar.gz |
Fix check return for sys_open.
Jeremy.
-rw-r--r-- | source/smbd/chgpasswd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c index 23205bd3a37..f1bd2e393e8 100644 --- a/source/smbd/chgpasswd.c +++ b/source/smbd/chgpasswd.c @@ -64,7 +64,7 @@ static int findpty(char **slave) #endif /* !HAVE_GRANTPT */ #if defined(HAVE_GRANTPT) - if ((master = sys_open("/dev/ptmx", O_RDWR, 0)) >= 1) { + if ((master = sys_open("/dev/ptmx", O_RDWR, 0)) >= 0) { grantpt(master); unlockpt(master); *slave = ptsname(master); |