summaryrefslogtreecommitdiff
path: root/source/locking
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
committerAndrew Tridgell <tridge@samba.org>1996-08-17 14:27:12 +0000
commit917160dee69bbc198985b6f3232ca2dcda809d8a (patch)
tree21114bd95b418f71df6070222265f254bf734d24 /source/locking
parent0490dedfd8865a39733ad6886b76d5f7768df575 (diff)
downloadsamba-917160dee69bbc198985b6f3232ca2dcda809d8a.tar.gz
- made FAST_SHARE_MODES standard for Linux
- you can now press enter after a password prompt with "smbclient -L hostname" and it will use a blank username and password, the same as if you used -U% - changed the wins.dat store code to not go via a string variable (just use fprintf instead) - removed a "unsigned long" that luke put back in, changing it to uint32 to keep 64 bit machines happy. Naughtly luke! - allow guest non-connnected print queue listings so ms client 3 can work
Diffstat (limited to 'source/locking')
-rw-r--r--source/locking/locking.c8
-rw-r--r--source/locking/shmem.c5
2 files changed, 7 insertions, 6 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c
index 60428f2e984..966bb2253b7 100644
--- a/source/locking/locking.c
+++ b/source/locking/locking.c
@@ -231,7 +231,7 @@ BOOL do_unlock(int fnum,int cnum,uint32 count,uint32 offset,int *eclass,uint32 *
return True; /* Did unlock */
}
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
/*******************************************************************
initialize the shared memory for share_mode management
******************************************************************/
@@ -312,7 +312,7 @@ get the share mode of a file
********************************************************************/
int get_share_mode(int cnum,struct stat *sbuf,int *pid)
{
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
share_mode_record *scanner_p;
share_mode_record *prev_p;
int ret;
@@ -434,7 +434,7 @@ del the share mode of a file, if we set it last
********************************************************************/
void del_share_mode(int fnum)
{
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
struct stat st;
time_t t=0;
int pid=0;
@@ -540,7 +540,7 @@ set the share mode of a file
********************************************************************/
BOOL set_share_mode(int fnum,int mode)
{
-#ifdef FAST_SHARE_MODES
+#if FAST_SHARE_MODES
int pid = (int)getpid();
struct stat st;
shm_offset_t new_off;
diff --git a/source/locking/shmem.c b/source/locking/shmem.c
index 3a308d07baf..f68059afa2c 100644
--- a/source/locking/shmem.c
+++ b/source/locking/shmem.c
@@ -20,10 +20,11 @@
*/
-#ifdef FAST_SHARE_MODES
+#include "includes.h"
-#include "includes.h"
+#if FAST_SHARE_MODES
+
extern int DEBUGLEVEL;