diff options
author | Jeremy Allison <jra@samba.org> | 2000-06-07 01:49:23 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-06-07 01:49:23 +0000 |
commit | 0164047afbd082b0003147845a72ca08b4781b81 (patch) | |
tree | 97d07fd0749d687d0838efc2464520b7489128ed /source3/smbd | |
parent | d253db1b9a10644940650cc802feb2a509adbaed (diff) | |
download | samba-0164047afbd082b0003147845a72ca08b4781b81.tar.gz samba-0164047afbd082b0003147845a72ca08b4781b81.tar.bz2 samba-0164047afbd082b0003147845a72ca08b4781b81.zip |
Fixing get/set of security descriptors.
Removed ugly hack for NT printing.
Fixed up tdb parse stuff memory leaks.
Jeremy.
(This used to be commit 8ef41f31c53e14ad057d883810a1cd2301fede2a)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/lanman.c | 2 | ||||
-rw-r--r-- | source3/smbd/nttrans.c | 5 | ||||
-rw-r--r-- | source3/smbd/pipes.c | 2 |
3 files changed, 8 insertions, 1 deletions
diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index fe2cc3ae7d..cfc0e08d47 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -776,6 +776,7 @@ static BOOL api_DosPrintQGetInfo(connection_struct *conn, desc.subcount = count; fill_printq_info(conn,snum,uLevel,&desc,count,queue,&status); } else if(uLevel == 0) { +#if 0 /* * This is a *disgusting* hack. * This is *so* bad that even I'm embarrassed (and I @@ -795,6 +796,7 @@ static BOOL api_DosPrintQGetInfo(connection_struct *conn, */ fail_next_srvsvc_open(); +#endif } *rdata_len = desc.usedlen; diff --git a/source3/smbd/nttrans.c b/source3/smbd/nttrans.c index e3874e1b3e..aad09a75b6 100644 --- a/source3/smbd/nttrans.c +++ b/source3/smbd/nttrans.c @@ -487,6 +487,7 @@ to open_mode %x\n", (unsigned long)desired_access, (unsigned long)share_access, return smb_open_mode; } +#if 0 /* * This is a *disgusting* hack. * This is *so* bad that even I'm embarrassed (and I @@ -547,7 +548,7 @@ BOOL should_fail_next_srvsvc_open(const char *pipename) } return False; } - +#endif /**************************************************************************** Reply to an NT create and X call on a pipe. @@ -573,8 +574,10 @@ static int nt_open_pipe(char *fname, connection_struct *conn, /* Strip \\ off the name. */ fname++; +#if 0 if(should_fail_next_srvsvc_open(fname)) return (ERROR(ERRSRV,ERRaccess)); +#endif DEBUG(3,("nt_open_pipe: Known pipe %s opening.\n", fname)); diff --git a/source3/smbd/pipes.c b/source3/smbd/pipes.c index c1d5c261fe..df7141764c 100644 --- a/source3/smbd/pipes.c +++ b/source3/smbd/pipes.c @@ -74,11 +74,13 @@ int reply_open_pipe_and_X(connection_struct *conn, /* Strip \PIPE\ off the name. */ pstrcpy(fname,smb_buf(inbuf) + PIPELEN); +#if 0 /* * Hack for NT printers... JRA. */ if(should_fail_next_srvsvc_open(fname)) return(ERROR(ERRSRV,ERRaccess)); +#endif /* Known pipes arrive with DIR attribs. Remove it so a regular file */ /* can be opened and add it in after the open. */ |