diff options
author | Jeremy Allison <jra@samba.org> | 2001-04-27 18:02:51 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-04-27 18:02:51 +0000 |
commit | 30f5a2565dfdc7d5575b61b74e52164a4ae6f544 (patch) | |
tree | 5072021e8a5c85a56a520b5a19acba1072c94966 | |
parent | 8cb26cc5d5b73545725de83f7972770c969678b8 (diff) | |
download | samba-30f5a2565dfdc7d5575b61b74e52164a4ae6f544.tar.gz samba-30f5a2565dfdc7d5575b61b74e52164a4ae6f544.tar.xz samba-30f5a2565dfdc7d5575b61b74e52164a4ae6f544.zip |
Fix from matthew.hart@veritas.com - bad error return from linux_oplock_receive_message().
Jeremy.
-rwxr-xr-x | source/configure | 2 | ||||
-rw-r--r-- | source/smbd/oplock_linux.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/source/configure b/source/configure index 2347b0d3808..0c8a8c9cc6c 100755 --- a/source/configure +++ b/source/configure @@ -10158,7 +10158,7 @@ if eval "test \"`echo '$''{'samba_cv_REPLACE_GETPASS'+set}'`\" = set"; then else SAVE_CPPFLAGS="$CPPFLAGS" -CPPFLAGS="$CPPFLAGS -I${srcdor-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper" +CPPFLAGS="$CPPFLAGS -I${srcdir-.}/ -I${srcdir-.}/include -I${srcdir-.}/ubiqx -I${srcdir-.}/smbwrapper" cat > conftest.$ac_ext <<EOF #line 10164 "configure" #include "confdefs.h" diff --git a/source/smbd/oplock_linux.c b/source/smbd/oplock_linux.c index e070761f108..5bf753d68c5 100644 --- a/source/smbd/oplock_linux.c +++ b/source/smbd/oplock_linux.c @@ -127,7 +127,7 @@ static BOOL linux_oplock_receive_message(fd_set *fds, char *buffer, int buffer_l SMB_DEV_T dev; SMB_INO_T inode; SMB_STRUCT_STAT sbuf; - BOOL ret; + BOOL ret = True; if (signals_received == signals_processed) return False; @@ -164,7 +164,7 @@ dev = %x, inode = %.0f\n", (unsigned int)dev, (double)inode )); signals_processed++; BlockSignals(False, RT_SIGNAL_LEASE); - return True; + return ret; } |