diff options
author | Samba Release Account <samba-bugs@samba.org> | 1997-08-20 01:22:05 +0000 |
---|---|---|
committer | Samba Release Account <samba-bugs@samba.org> | 1997-08-20 01:22:05 +0000 |
commit | de38a0b34fcd65fa3024300f978aa30eb86d854f (patch) | |
tree | 8df108e899638edec3dd3be208cc3be6fb10468f /source/smbd/dir.c | |
parent | 9d7e75bdf568239af53d7162c2b207ea06ed4070 (diff) | |
download | samba-de38a0b34fcd65fa3024300f978aa30eb86d854f.tar.gz samba-de38a0b34fcd65fa3024300f978aa30eb86d854f.tar.xz samba-de38a0b34fcd65fa3024300f978aa30eb86d854f.zip |
Fix suggested by "Christian Groessler" <chris@fast-ag.de>
dir.c: Cause dptr_create to return -2 when failing on unix error.
reply.c: Use UNIXERROR in more cases.
server.c: Add ENOTDIR mapping to error table.
trans2.c: Correctly determine UNIX error on dptr_create.
Jeremy (jallison@whistle.com)
Diffstat (limited to 'source/smbd/dir.c')
-rw-r--r-- | source/smbd/dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/dir.c b/source/smbd/dir.c index 5bd5b1d5736..06ee6ae8ed7 100644 --- a/source/smbd/dir.c +++ b/source/smbd/dir.c @@ -282,7 +282,7 @@ int dptr_create(int cnum,char *path, BOOL expect_close,int pid) int oldi; if (!start_dir(cnum,path)) - return(-1); + return(-2); /* Code to say use a unix error return code. */ if (dptrs_open >= MAXDIR) dptr_idleoldest(); |