diff options
author | Andrew Tridgell <tridge@samba.org> | 1997-10-27 14:27:17 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1997-10-27 14:27:17 +0000 |
commit | 71d648cdb431ecf984196a7e480208a94fcdf390 (patch) | |
tree | ca2ebf89d320d18000b145647afbbf0b11273bda /source3/include | |
parent | 464dc5433641566abeeabd07f46ab569c986a3b0 (diff) | |
download | samba-71d648cdb431ecf984196a7e480208a94fcdf390.tar.gz samba-71d648cdb431ecf984196a7e480208a94fcdf390.tar.bz2 samba-71d648cdb431ecf984196a7e480208a94fcdf390.zip |
change the default file permissions on the SHARE_MEM_FILE* to
0644. smbstatus now gets only read permission on the share files and
does no locking.
also get rid of some unnecessary umask(0) calls. smbd always runs with
umask(0)
(This used to be commit c6ac10170dbba57dfebc54c50d79cb29d13bb442)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/proto.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h index f0c855c689..cdecd1ec88 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -351,7 +351,7 @@ int lp_minor_announce_version(void); BOOL is_locked(int fnum,int cnum,uint32 count,uint32 offset); BOOL do_lock(int fnum,int cnum,uint32 count,uint32 offset,int *eclass,uint32 *ecode); BOOL do_unlock(int fnum,int cnum,uint32 count,uint32 offset,int *eclass,uint32 *ecode); -BOOL locking_init(void); +BOOL locking_init(int read_only); BOOL locking_end(void); BOOL lock_share_entry(int cnum, uint32 dev, uint32 inode, int *ptok); BOOL unlock_share_entry(int cnum, uint32 dev, uint32 inode, int token); @@ -365,11 +365,11 @@ void share_status(FILE *f); /*The following definitions come from locking_shm.c */ -struct share_ops *locking_shm_init(void); +struct share_ops *locking_shm_init(int ronly); /*The following definitions come from locking_slow.c */ -struct share_ops *locking_slow_init(void); +struct share_ops *locking_slow_init(int ronly); /*The following definitions come from lsaparse.c */ @@ -869,7 +869,7 @@ int construct_reply(char *inbuf,char *outbuf,int size,int bufsize); /*The following definitions come from shmem.c */ -BOOL smb_shm_open(char *file_name, int size); +BOOL smb_shm_open(char *file_name, int size, int ronly); BOOL smb_shm_close( void ); int smb_shm_alloc(int size); BOOL smb_shm_free(int offset); |