summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/smbw_dir.c
AgeCommit message (Collapse)AuthorFilesLines
2001-10-11remove unused function in mangle.cSimo Sorce1-1/+1
fix some alloc leaks spotted by andreas moroder. (This used to be commit 39409a20f69078709c63f6f867c042e66d5c7de3)
2001-10-02Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter1-2/+0
(This used to be commit 2d0922b0eabfdc0aaf1d0797482fef47ed7fde8e)
2001-09-17move to SAFE_FREE()Simo Sorce1-9/+7
(This used to be commit a95943fde0ad89ae3f2deca2f7ba9cb5ab612b74)
2001-08-12this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce1-1/+4
many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also. (This used to be commit fa8e55b8b465114ce209344965c1ca0333b84db9)
2001-04-12Added a caching system to smbsh. Previously access to workgroup or serverTim Potter1-7/+6
directories under /smb generated net share enum or net server enum calls. For large networks this could result in bad performance. We now cache these results and only call net * enums after the cache timeout has exceeded. (This used to be commit 1e38eef54d729aeb7fe905b344cf1480c686a348)
2001-01-15Compile fix for smbw_dir_add function.Tim Potter1-4/+5
(This used to be commit d7920a670b7706fc1d794edcfe6baacc5bb26403)
2001-01-05Needed a callback arg on cli_list ...Richard Sharpe1-2/+2
(This used to be commit d45e667a74fc2fcbf69c4819d480269c03dbfae4)
2001-01-05Added extra argument to calls to smbw_share_add()Tim Potter1-8/+8
(This used to be commit d006e6adca0548dad334d871c5d440b1d32ac879)
2001-01-04I need a callback arg for cli_NetServerEnum and cli_RNetShareEnum, so I hadRichard Sharpe1-5/+6
to modifiy any routine that calls it to pass NULL and so forth. Should have no impact. It compiles OK. (This used to be commit 7f862e387f935a2125481338eee850afcb8d82ba)
2000-12-11added support for browsing the list of workgroups at the top level inAndrew Tridgell1-1/+10
smbw (This used to be commit 8f97d59186ee3b52f623d30dfb7b195ec721ec0c)
1999-12-13first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1-3/+2
(This used to be commit 453a822a76780063dff23526c35408866d0c0154)
1998-12-07issues spotted by herb.Luke Leighton1-1/+1
(This used to be commit 57e025494692b1e54d4d83192e6c15d4d1454353)
1998-11-29weekend work. user / group database API.Luke Leighton1-1/+2
- split sam_passwd and smb_passwd into separate higher-order function tables - renamed struct smb_passwd's "smb_user" to "unix_user". added "nt_user" plus user_rid, and added a "wrap" function in both sam_passwd and smb_passwd password databases to fill in the blank entries that are not obtained from whatever password database API instance is being used. NOTE: whenever a struct smb_passwd or struct sam_passwd is used, it MUST be initialised with pwdb_sam_init() or pwd_smb_init(), see chgpasswd.c for the only example outside of the password database APIs i could find. - added query_useraliases code to rpcclient. - dealt with some nasty interdependencies involving non-smbd programs and the password database API. this is still not satisfactorily resolved completelely, but it's the best i can do for now. - #ifdef'd out some password database options so that people don't mistakenly set them unless they recompile to _use_ those options. lots of debugging done, it's still not finished. the unix/NT uid/gid and user-rid/group-rid issues are better, but not perfect. the "BUILTIN" domain is still missing: users cannot be added to "BUILTIN" groups yet, as we only have an "alias" db API and a "group" db API but not "builtin-alias" db API... (This used to be commit 5d5d7e4de7d1514ab87b07ede629de8aa00519a1)
1998-11-09Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1-1/+1
client/client.c: client/clitar.c: include/client.h: smbwrapper/smbw_dir.c: smbwrapper/smbw_stat.c: smbwrapper/smbw.c: lib/util.c: Converted all use of 'mode' to uint16. smbd/quotas.c: Fixed stupid comment bug I put in there :-(. printing/printing.c: Fix from J.F. to new code. Jeremy. (This used to be commit bacd3e9d2036a804e73644a28fc498f229c8446c)
1998-11-09converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell1-4/+4
I did this when I saw yet another bug report complaining about smbclient intermittently missing files. Rather than applying more patches to smbclient it was better to move to the more robust clientgen.c code. The conversion wasn't perfect, I probably lost some features of smbclient while doing it, but at least smbclient should be consistent now. It if fails it should _always_ fail rather than giving people the false impression of a reliable utility. the tar stuff seems to work, but hasn't had much testing as I never use it myself. I'm sure someone will find bugs in my conversion of smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It now uses clientgen.c exclusively. smbclient is still quite messy, but at least it doesn't build its own SMB packets. I haven't touched smbmount as I never use it. Mike, do you want to convert smbmount to use clientgen.c? (This used to be commit e14ca7765ace1b721dad8eca4a527a4e4a8f1ab8)
1998-10-24volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell1-1/+11
changes uses the unique index number from a SMB_QUERY_FILE_ALL_INFO to try to provide inode numbers. If it is 0 then use the hash of the filename as before. (This used to be commit 2565ccf9de9d5e80fdb5bcadbc7130faba386d95)
1998-10-23don't use SMBW_PWD_ENV any moreAndrew Tridgell1-3/+0
(This used to be commit 252fe1e7014b2bf79a3abfa52fb77db9129074c7)
1998-10-20removed setenv(), replaced with smbw_setenv()Andrew Tridgell1-1/+1
(This used to be commit 72bce217ef474f056d8f6675667ec78d1772ff37)
1998-10-08fixed a problem with fchdir() that broke "cvs -d" in smbshAndrew Tridgell1-5/+9
(This used to be commit 6121f7c8c2d63fd12266327a6f2ac9a5e717dccc)
1998-10-07fixed a warning on SunOSAndrew Tridgell1-1/+1
(This used to be commit fda52c6fd1ff0c46948bff7156742dab1dd1eacd)
1998-10-07more OSF1 changes as well as changes to allow us to use the standardAndrew Tridgell1-1/+5
includes.h in wrapped.c, thus making porting much simpler (This used to be commit 6f2239c935fdecfefa89227c113df01e3957691a)
1998-10-06implemented unix semantics for rename in smbwrapperAndrew Tridgell1-2/+0
(This used to be commit a5c18f9c82f5f76b00ff29c5668b4f0d3e8d6bd0)
1998-10-06added a wrapper for fork()Andrew Tridgell1-0/+1
in a fork we have to close all server connections otherwise we can end up with two processes writing to the same socket. (This used to be commit b7ecbca3aff34ff06a445e5ee39efba48261b7e8)
1998-10-06fixed a bug in time setting (utime() call)Andrew Tridgell1-7/+7
(This used to be commit 2f4506a33c7015f2a176929d794c6c40f1433591)
1998-10-06added SMBW_PREFIX environment variable (allowing you to specify rootAndrew Tridgell1-14/+23
of smb filesystem) fixed "cd /smb" bug updated README with full list of environment variables. (This used to be commit 71acf338d721b106af8d80e7b3a6f318ab75da8b)
1998-10-05- keep IRIX cc -64 happyAndrew Tridgell1-1/+1
- fixed a chdir bug (This used to be commit 80d1c5118abaa99fe0f1c9d2089a81c9953cebad)
1998-10-05got rid of all assembly code and gcc special features. I'm hoping toAndrew Tridgell1-20/+0
get smbsh working with the normal sun compiler (This used to be commit c6ee915336e1533e1f4f10f14b3d57de01f8fe96)
1998-10-05this gets smbwrapper working under Solaris 2.6. Not tested much yet.Andrew Tridgell1-7/+6
(This used to be commit 6a1b346d98c10688f0995a6ab8fd155a77ead258)
1998-10-04don't list the IPC$ share in directory listings (it causes infiniteAndrew Tridgell1-0/+2
recursion) (This used to be commit 8d74f7bfdc217e95a7e300d06c3bf4e8d4877a6a)
1998-10-04started basic support for solaris 2.5 in smbwrapper.Andrew Tridgell1-18/+22
(This used to be commit e5c7cabae4826bde819b94a48bc4674dcd69da21)
1998-10-04support NetServerEnum in smbwrapper. You can now do a ls in /smb/ andAndrew Tridgell1-2/+25
it will list all servers in your workgroup. You can set your workgroup with the SMBW_WORKGROUP environment variable. (This used to be commit 64699810e2d94e8648a0a3341b1cc826d4e8bfd9)
1998-10-04added support for printing via smbwrapperAndrew Tridgell1-4/+32
You can print using "cp filename /smb/SERVER/PRINTER/jobname" You can list the current printqueue using ls (This used to be commit 080fb61b69620e26e8122705383dc2bd0468a519)
1998-10-04modified cli_read() and cli_write() to issue multiple outstandingAndrew Tridgell1-1/+1
read/write requests for large reads. up to max_mux requests may be outstanding. This gives _much_ better throughput and should allow smbsh to saturate just about any network. this is an implementation of the "fast SMB" method I described on the CIFS list a couple of months back. (This used to be commit c728d1c5d6e4626d2f8e318eab4df32acc8cb505)
1998-10-04use dummy file descriptors opened on /dev/null to ensure that the smbwAndrew Tridgell1-3/+10
file descriptor allocation order is identical to the kernels. (This used to be commit 60a683465647932f7241ba9f92443d5e5294e20b)
1998-10-04more smbw cleanups.Andrew Tridgell1-5/+8
- cleaned up prototyping. Unfortunately we can't auto-prototype wrapped.c because it replaces system functions. - split stat functions into smbw_stat.c (This used to be commit 04e92e692e49234df6fbbfd07a33b315ed62f0de)
1998-10-04- split smbw directory code into smbw_dir.cAndrew Tridgell1-0/+611
- fixed a bug in the handling of multiple connections to different servers (This used to be commit a9f9d8c3d8c18a5ab4c18c1348ee9c8d643880fa)