summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
1998-10-28Fix from thwartedefforts@wonky.org (slightly modified) toJeremy Allison1-1/+1
fix username overwriting problem in security=share. Jeremy. (This used to be commit 17621964344336c6303386c3c9e8a3e23b9e46e1)
1998-10-28fixed problem with snprintf.c and mkprotoAndrew Tridgell2-4/+13
(This used to be commit 99430ce899c02b95ab3c577afff7f28c6d5c6c45)
1998-10-28use abort() instead of exit() in smb_panic()Andrew Tridgell1-1/+1
the reason we don't return() here is that smb_panic() is used not just for segv but also for detected errors (such as buffer overflows) (This used to be commit 7a50ca81a5842f7139e67c0ff9de79518599f445)
1998-10-28fixed handling of %.0f in replacement snprintf.cAndrew Tridgell1-12/+28
(This used to be commit 177b7b6b190c78ab59e19187d3221d23bb280911)
1998-10-27Fixed a small bug in debug2html. It wasn't properly checking EOF. TheChristopher R. Hertel2-2/+28
current status is "it works". I need to add some syntax error recovery and a usage message. Basic stuff. I've also modified Makefile.in. If you want to compile it you'll have to do a 'make debug2html', as I used smbtorture as a model. We can decide later if this tool is useful enough to be compiled always. BTW, a 'make realclean' fails because the bin directory isn't empty. That's because it doesn't delete optionally compiled files such as smbtorture and debug2html (and because of the CVS subdirectory, but I think that's only a problem for developers). Chris -)----- (This used to be commit e86fd87a3806f4c161a8f887bbdd4d400ae56ac2)
1998-10-27Added info about parsing debug messages.Christopher R. Hertel1-28/+210
Chris -)----- (This used to be commit 26fcdfd082e84df675ad06c7ba8c0cdbf07eed98)
1998-10-27debug string with no %s parameter. oopsLuke Leighton1-1/+2
(This used to be commit 22721b027139ffb7ff2625741b68701ba15fbb98)
1998-10-27amazing. the improvements to NT continue, evidence for which shows upLuke Leighton6-17/+19
now as "RPC fault" if the UNIHDR structure lengths do not exactly match up to the length of the data stream. so, all versions of samba prior to this one have an off-by-one bug in unicode string lengths. all versions of NT prior to NT 5 beta 2 could possibly have buffer problems when receiving badly formatted UNICODE strings. (This used to be commit 161eb6f511e161b63c1fa90a08c562fcf208344a)
1998-10-27add ifdef for "long double"Andrew Tridgell1-12/+18
(This used to be commit ae1888529b00f1a98d2b76fec7f19684efca90c7)
1998-10-26added a vsnprintf() implementation from cvslock. See the notes on theAndrew Tridgell4-47/+803
license at the top of lib/snprintf.c I've always been slightly uneasy about our half-baked vslprintf() implementation and the risks on platforms that don't have vsnprintf() so when I saw this code in another GPLd package I wanted it for Samba. (This used to be commit e2cb50af45be6683d02ab48a6648816ee3d52ab1)
1998-10-26Here is the simple debug parser and the debug2html converter. Still to do:Christopher R. Hertel3-0/+635
* Debug message filtering. * I need to add all this to Makefile.in (If it looks at all strange I'll ask for help.) If you want to compile debug2html, you'll need to do it by hand until I make the changes to Makefile.in. Sorry. Chris -)----- (This used to be commit fae161b9051c3ea8aa129bdb3df11d215007723d)
1998-10-26Fixed a couple of issues with the SMB_QUERY_FILE_ALL_INFO query.Jeremy Allison1-2/+5
Ensured offset was being reported correctly for 64 bit file access, ensured delete on close bit was being reported correctly. Jeremy. (This used to be commit 4332bc06c6604a3e14007eda4f40e6183a1f8526)
1998-10-26report ourselves as HTTP/1.0 not HTTP/1.1Andrew Tridgell1-3/+3
(This used to be commit b2210614e810c8e84c9a14a8e32e05f95d92479b)
1998-10-26added a couple more error codes to cli_error()Andrew Tridgell1-0/+6
(This used to be commit b2a7f85d597d4d2a71fd38d76aac0464d53df626)
1998-10-24fix for John.Andrew Tridgell1-8/+8
don't seek unless absolutely necessary on files in do_put() (This used to be commit 9d33d405cdbd9ae61fb68b6f5ce5f56f86cc54bb)
1998-10-24handle the case of an intermediate binary not loading smbwrapper.soAndrew Tridgell1-2/+1
(for example /usr/bin/man because it is setgid). (This used to be commit 85f639ab2ba72dda5a00cf11c8ee705f5a51ec54)
1998-10-24volker was concerned about unique inode numbers and smbsh. This set ofAndrew Tridgell9-35/+85
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-24make sure that apps can't close one of the internal smbw fileAndrew Tridgell4-2/+32
descriptors by catching close attempts on those fds and returning EBADF. (This used to be commit 9d863fb1681a5b03696552e1d93fe339b4bae455)
1998-10-24Fix for -fpic rules (.c.po and .c.po32) when using --enable-maintainer-mode.Tim Potter1-4/+4
(This used to be commit 552175fdcb78c79833464648b5ccdc91b935e69c)
1998-10-24Unlink zero length files that did NOT exist at the point of origin on a ↵John Terpstra1-1/+4
do_get() call. (This used to be commit 98ba0b3a0a5074cf2b7adba407c5fd46f63c3f27)
1998-10-23added domain and local group structures. names may have to be 256 charsLuke Leighton2-16/+60
long not 128 (fstring) length. (This used to be commit 1e96e14e790e733bbd182a828b0db8727fead2a2)
1998-10-23Handle the case where multiple smbd have the file open, some of whomJeremy Allison2-17/+76
don't have the ALLOW_DELETE_ON_CLOSE share flag enabled. Told you this was fiddly code :-). Jeremy. (This used to be commit 222d686a6cdbc2947e7201636ae80ef4c650a65d)
1998-10-23set netlogon negotiation flags to 0x1ff, not to what the client requests.Luke Leighton3-19/+24
this is 0x4000 01ff on NT4 SP4, and 0x0000 01ff on pre-NT4 SP4. (This used to be commit 59cf9c00d91f9706d58c3d3000842eccb9d272fc)
1998-10-23possible bug in change oem password code: replaced E_P16 and E_md4hashLuke Leighton1-9/+1
with a call to nt_lm_owf_gen. if this still doesn't get the NT hash generated correctly then there may instead be a bug in mod_smbpwd_entry(). (This used to be commit 1c8c644210870fef7ea3eddf411b01a98f991fcc)
1998-10-23Make the new code conditional on lp_share_modes() just like the code in ↵Jeremy Allison1-36/+39
open_file_shared(). Jeremy. (This used to be commit 8de02620ea8f45f6a700617911947467e7be46e1)
1998-10-23Fixed debug reporting in the changed code.Jeremy Allison1-1/+6
Jeremy. (This used to be commit d815e2d7a65c95ae71372b4fc8fe82f0202386dc)
1998-10-23Fixed bug in previous commit where I was overwriting share_mode fromJeremy Allison1-3/+4
one fsp with that of another. Not good :-). Jeremy. (This used to be commit 269bca2b3bbf5cae9fdf05d0405bfd80272da5d1)
1998-10-23Reasonably large change to give us *exactly* correct NT delete on close ↵Jeremy Allison10-41/+225
semantics. This was trickier than it looks :-). Check out the new DELETE_ON_CLOSE flag in the share modes and the new code that iterates through all open files on the same device and inode in files.c and trans2.c Also changed the code that modifies share mode entries to take generic function pointers rather than doing a specific thing so this sort of change should be easier in the future. Jeremy. (This used to be commit 5e6a7cd99d29d1cf068fc517272559c1cf47ea3a)
1998-10-23don't enable smbsh/smbwrapper on systems where we can't work out howAndrew Tridgell5-376/+401
to generate PIC code (This used to be commit a66c56d70e7e663f3a19cbfcc2e704653d8fc9b2)
1998-10-23don't use SMBW_PWD_ENV any moreAndrew Tridgell1-3/+0
(This used to be commit 252fe1e7014b2bf79a3abfa52fb77db9129074c7)
1998-10-23fixed problems with PWD - we no longer use the PWD env variableAndrew Tridgell3-11/+19
instead the shared variable area is used. this fixes problems with /bin/sh under solaris (This used to be commit 4eb7b5c6a81447755dfa1be27479027333ed6f26)
1998-10-23make the shared variable stuff slightly more sophisticatedAndrew Tridgell1-12/+26
(This used to be commit 636182f18346af457f905cd784e68ae5d4f75d0e)
1998-10-23include/smb.h: Added #defines for lots of things - makes our code a *lot* ↵Jeremy Allison9-72/+146
easier to read. lib/util.c: Fixed Luke's set_first_token() function - should return void. smbd/close.c: Move delete_on_close into file_fd_struct structure. smbd/ipc.c: Changed local_machine back to fstring. smbd/nttrans.c: Use defines for mapping share modes. smbd/open.c: Move delete_on_close into file_fd_struct structure, added code for ALLOW_SHARE_DELETE. smbd/reply.c: Use defines for mapping share modes. smbd/trans2.c: Move delete_on_close into file_fd_struct structure. Jeremy. (This used to be commit 8e1ce307bd6a9056b4a95fe6f52ff42dc6e03a08)
1998-10-22torture debug.Luke Leighton2-1/+14
(This used to be commit 97609596647dea39c061bdf972411a86f7294521)
1998-10-22enumeration tests (files, sessions, shares, connections).Luke Leighton1-0/+32
hey, you can see how many connections succeed while the rpctorture command is running! (This used to be commit c1bf8f109932a3387fa7b8b4265a3eda52d3e0a3)
1998-10-22Okay, this is really silly but removing one space from one debug statementChristopher R. Hertel1-1/+1
meant that one hex dump would fit within 80 characters in lynx after HTML conversion. (This used to be commit c391f076f29cff917fd51d58598e1ad11048e824)
1998-10-22rpctorture commandLuke Leighton5-8/+544
(This used to be commit b4ae65e2d0582274d67d02ea190f6d3d83b48594)
1998-10-22Removed previously #ifdef 0 'ed code.Jeremy Allison1-37/+0
Jeremy. (This used to be commit 7feaa13d02f84760d6857115ed253570f41911bb)
1998-10-22server/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstringJeremy Allison4-4/+11
(as it is everywhere else). smbwrapper/smbsh.c: For IRIX n32 binaries, set _RLDN32_LIST not _RLD32_LIST. Exec users preferred shell is SHELL environment variable is set. tests/fcntl_lock.c: Added sys/types.h for systems that need this. Jeremy. (This used to be commit 50413d0d819d4f13e760ca8439c5bdde0898d63e)
1998-10-22bug fix in lsa_trans_names.Luke Leighton5-7/+14
well-known aliases S-1-5-20 is actually S-1-5-0x20 but sid_to_string does decimal not hexadecimal oops. (This used to be commit 4d830e243650729344a2d1b238075e787802ff8b)
1998-10-22Minor change.Christopher R. Hertel1-1/+1
The debug_browse_data() function does a hex dump of a browser packet. The last line is often not a full 16 bytes, which would miss-align the hex output. I've added the padding needed to align the hex output. Chris -)----- (This used to be commit 9f9b30abab118f0a2e007beddd79de38a2d5ea29)
1998-10-22extern fstring global_myworkgroup should be a pstringLuke Leighton1-2/+2
(This used to be commit 89f6e05ce4cc21fd2e3c0e416e49383f7b56d1ea)
1998-10-22libsmb/smbdes.c: #ifdef'ed out code prior to removal.Jeremy Allison7-38/+138
rpc_client/cli_pipe.c: Inlined code removed from smbdes.c rpc_server/srv_samr.c: Fixed unused variable warning. rpc_server/srv_util.c: Inlined code removed from smbdes.c Luke - the above changes are the first part of the changes you and I discussed as being neccessary at the CIFS conference. *PLEASE REVIEW THESE CHANGES* - make sure I haven't broken any of the authenticated DCE/RPC code. smbd/nttrans.c: Fixed to allow NT5.0beta2 to use Samba shares with NT SMB support. smbd/open.c: Fixed mkdir when called from nttrans calls. smbd/server.c: Set correct size for strcpy of global_myworkgroup. Jeremy. (This used to be commit d891421d16ff80998dee429227bd391455f9d1a1)
1998-10-22Another cosmetic change.Christopher R. Hertel1-2/+8
When dumping the wins.dat, this module will also write the database contents to the log file (don't do this if you have a large wins.dat!). The output was in a sort of tabular format, except that the asctime() function was used and it always terminates its output with a newline. I did a bit of fussing, removed the '\n' character, and did my best to line up the other columns. If the output format of asctime() is different on different systems, then the columns won't line up, but the output will still look better than it did before. Chris -)----- (This used to be commit 57295113feefcde77b429c661878444cd078b21f)
1998-10-21domain aliases added a bit better: does local aliases if you queryLuke Leighton15-104/+166
for sid S-1-5-20 and does (nothing at the moment) if you query for your own sid. (This used to be commit da40f26f4b2f7ce286076b4e39dffd76aa2ef8e6)
1998-10-21the next dialog: user-groups. it's not very sensible what appears, but hey:Luke Leighton10-26/+593
it appears! (This used to be commit 399035098f212e976cc0000a215e0705ebe78c05)
1998-10-21I received a bug report from Massimo Campostrini in Pisa. There are a pairChristopher R. Hertel2-10/+53
of "front-end" functions with the same bug each. Fixed. (This used to be commit 487a2e13b7913e512fa01e736daaccc3858eb689)
1998-10-21added "start index" skipping into querydispinfo.Luke Leighton1-5/+15
(This used to be commit 3e6519da22628ea41025711718ec23b082ef02d0)
1998-10-21Changed the debug calls to use the newer debug macros. This allowed me toChristopher R. Hertel1-59/+151
break up some very long lines in both the code and the output. The change is mostly cosmetic, but should improve log file readability. (This used to be commit fc4e0148ebf8ea45e4410224218c0c987965d36c)
1998-10-21Fixed mainly signed/unsigned issues found by SGI cc in -fullwarn mode.Jeremy Allison11-34/+58
smbd/chgpasswd.c: Fixed (my) stupid bug where I was returning stack based variables. Doh ! smbd/trans2.c: Allows SETFILEINFO as well as QFILEINFO on directory handles. Jeremy. (This used to be commit 0b44d27d0b5cc3948a6c2d78370ccddf1a84cd80)