From 09a5daf032b6e206e9371e63ca06ef60ef841b6a Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 12 Apr 2001 07:00:08 +0000 Subject: 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) --- source3/include/proto.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/include') 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 */ -- cgit