summaryrefslogtreecommitdiff
path: root/source3/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
commitefb8113d00a4513c1115640004c0905465d3b673 (patch)
tree13823188f1f1b05a4861611a806109d2281e6479 /source3/locking
parente351461e094a14caed31b7eae37e39d935d30561 (diff)
downloadsamba-efb8113d00a4513c1115640004c0905465d3b673.tar.gz
samba-efb8113d00a4513c1115640004c0905465d3b673.tar.bz2
samba-efb8113d00a4513c1115640004c0905465d3b673.zip
- 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 (This used to be commit 917160dee69bbc198985b6f3232ca2dcda809d8a)
Diffstat (limited to 'source3/locking')
-rw-r--r--source3/locking/locking.c8
-rw-r--r--source3/locking/shmem.c5
2 files changed, 7 insertions, 6 deletions
diff --git a/source3/locking/locking.c b/source3/locking/locking.c
index 60428f2e98..966bb2253b 100644
--- a/source3/locking/locking.c
+++ b/source3/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/source3/locking/shmem.c b/source3/locking/shmem.c
index 3a308d07ba..f68059afa2 100644
--- a/source3/locking/shmem.c
+++ b/source3/locking/shmem.c
@@ -20,10 +20,11 @@
*/
-#ifdef FAST_SHARE_MODES
+#include "includes.h"
-#include "includes.h"
+#if FAST_SHARE_MODES
+
extern int DEBUGLEVEL;