Bug 1557 - Add open and read calls to py_smb
Add open and read calls to py_smb
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: python
3.0.5
All Linux
: P3 enhancement
: none
Assigned To: Tim Potter
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-07-23 08:43 UTC by Daniel Jarboe
Modified: 2005-08-24 10:15 UTC (History)
0 users

See Also:


Attachments
add open and read to py_smb (3.27 KB, patch)
2004-07-23 08:47 UTC, Daniel Jarboe
no flags Details
add openand read to py_smb (3.29 KB, patch)
2004-07-23 08:54 UTC, Daniel Jarboe
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Jarboe 2004-07-23 08:43:13 UTC
Flesh out py_smb a little more with open and read calls (based on cli_open and 
cli_read, respectively).  I couldn't find any other way to read from a file 
with the current python samba extensions.

Patch below

~ Daniel
Comment 1 Daniel Jarboe 2004-07-23 08:47:37 UTC
Created attachment 579 [details]
add open and read to py_smb

Hope something like this will be considered for inclusion, thanks.
Comment 2 Daniel Jarboe 2004-07-23 08:54:54 UTC
Created attachment 580 [details]
add openand read to py_smb

fix leak if cli_read fails
Comment 3 Gerald (Jerry) Carter 2005-02-07 09:50:20 UTC
originally against 3.0.5pre1 (which became 3.0.6pre1 due to security release))

tpot, still open ?
Comment 4 Tim Potter 2005-02-08 13:25:46 UTC
Checked in - thanks Daniel!
Comment 5 Gerald (Jerry) Carter 2005-08-24 10:15:47 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.