summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-06-09 21:03:50 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:51:54 -0500
commit459cb00785c1eb71a1886c5960b5176e85c48d57 (patch)
treed37fdc52c56a0e729edafb276d34e94e6b319bac /source3
parentb28d08cc14bd37c6263ed029a57f390687746bb9 (diff)
downloadsamba-459cb00785c1eb71a1886c5960b5176e85c48d57.tar.gz
samba-459cb00785c1eb71a1886c5960b5176e85c48d57.tar.bz2
samba-459cb00785c1eb71a1886c5960b5176e85c48d57.zip
r1097: Fix errno being incorrectly set. Noticed by Richard.
Jeremy. (This used to be commit c8a55e92dd9622fa2a408b5a16f1adcf22253fc5)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c
index aca9756628..330080353c 100644
--- a/source3/smbd/open.c
+++ b/source3/smbd/open.c
@@ -244,6 +244,7 @@ static BOOL open_file(files_struct *fsp,connection_struct *conn,
BOOLSTR(fsp->can_read), BOOLSTR(fsp->can_write),
conn->num_files_open + 1));
+ errno = 0;
return True;
}