summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1999-01-25 23:46:19 +0000
committerJeremy Allison <jra@samba.org>1999-01-25 23:46:19 +0000
commit22735196e4e16e8953fc497cd5f09798036b31f0 (patch)
treed17323c6281bafec84d31948ea38a67447a0c2af
parentecec12214d7bc7cb46060120340e5fc9d9322210 (diff)
downloadsamba-22735196e4e16e8953fc497cd5f09798036b31f0.tar.gz
samba-22735196e4e16e8953fc497cd5f09798036b31f0.tar.xz
samba-22735196e4e16e8953fc497cd5f09798036b31f0.zip
Andrew paranoia fix with errno and EINTR.
Jeremy.
-rw-r--r--source/smbd/open.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c
index 4edf3e8ecc9..9dd03e17039 100644
--- a/source/smbd/open.c
+++ b/source/smbd/open.c
@@ -227,8 +227,10 @@ static BOOL check_access_allowed_for_current_user( char *fname, int accmode )
int status_code;
while ((wpid = sys_waitpid(child_pid, &status_code, 0)) < 0) {
- if(errno == EINTR)
+ if(errno == EINTR) {
+ errno = 0;
continue;
+ }
DEBUG(0,("check_access_allowed_for_current_user: The process \
is no longer waiting ! Error = %s\n", strerror(errno) ));
CatchChild();