summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-04-12 07:00:08 +0000
committerJeremy Allison <jra@samba.org>2001-04-12 07:00:08 +0000
commit09a5daf032b6e206e9371e63ca06ef60ef841b6a (patch)
tree6fd44623d74d63d1898f5ba5b5e5ad855f0b8e23 /source3/include
parent3e24c65101a7ec9c80892f9bc70c6e11a936385b (diff)
downloadsamba-09a5daf032b6e206e9371e63ca06ef60ef841b6a.tar.gz
samba-09a5daf032b6e206e9371e63ca06ef60ef841b6a.tar.bz2
samba-09a5daf032b6e206e9371e63ca06ef60ef841b6a.zip
Changed lp_add/delete/enum scripts to use lockdir if spool dir doesn't
exist for printer. Rather than using pid for suffix, use a 16 byte random string. Created generate_random_str() function in genrand.c. Still needs more testing but this is the way to go. Jeremy. (This used to be commit 71a330987f990007beb16f00fc468107361b5e9d)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 57255d403c..78fae3705a 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -126,6 +126,7 @@ int sys_fsusage(const char *path, SMB_BIG_UINT *dfree, SMB_BIG_UINT *dsize);
/*The following definitions come from lib/genrand.c */
void generate_random_buffer( unsigned char *out, int len, BOOL re_seed);
+char *generate_random_str(size_t len);
/*The following definitions come from lib/getsmbpass.c */
@@ -1882,9 +1883,8 @@ BOOL pdb_generate_sam_sid(void);
/*The following definitions come from passdb/pampass.c */
-BOOL PAM_session(BOOL instance, const connection_struct *conn, char *tty);
+BOOL pam_session(BOOL flag, const connection_struct *conn, char *tty);
BOOL pam_passcheck(char * user, char * password);
-BOOL pam_passcheck( char * user, char * password );
/*The following definitions come from passdb/pass_check.c */