summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fixed silly bug in dup2 code found by Kenichi Okuyama@Tokyo Research Lab. ↵Jeremy Allison2000-10-281-1/+1
| | | | | | | IBM-Japan. Co. Jp. Jeremy. (This used to be commit 9c2272e056aef741c4b86f9a247c3534944d9eff)
* Even when looking up a users groups via winbindd even if the lookup forJeremy Allison2000-10-251-2/+2
| | | | | | | | | the list of groups a user is in succeeds via winbind, we must allow the lookup of the group name -> gid we are checking if the user is a member of to go via winbind or /etc/group - as it may be a group on the local box we are checking against. This is a subtle one..... Jeremy. (This used to be commit 4ffda462b97e4f35c6d050c579dfe3e3b64e2c9f)
* John Reilly @ HP (who is a wonderful human being and *definately* needsJeremy Allison2000-10-251-2/+0
| | | | | | | | | CVS commit access :-) has written a simple routine that peeks inside the MS PE printer driver file format and can tell if a driver is W2K or NT4.x. So we can now correctly return the driver version number. Hurrah ! JF - this is the code you always wanted ..... :-) :-). Jeremy. (This used to be commit fd17374e6d888813f4ed7142480cf93b8a16bfef)
* Fixed missing bracket on debug statement.Tim Potter2000-10-191-1/+1
| | | | (This used to be commit 9328bc7b8a7d43ef0da47413f314f9943ea98847)
* Added David O'Neills fix to HEAD (hmmm. how did this compile... :-).Jeremy Allison2000-10-131-1/+1
| | | | | Jeremy. (This used to be commit e222057140edb3f14d76e54bd6e744919f50b4df)
* Fix to allow smbd to call winbindd if it is running for all group enumeration,Jeremy Allison2000-10-132-32/+148
| | | | | | | | | falling back to the UNIX calls on error. This should fix all problems with smbd enumerating all users in all groups in all trusted domains via winbindd. Also changed GETDC to query 1C name rather than 1b name as only the PDC registers 1b. Jeremy. (This used to be commit 5b0038a2afd8abbd6fd4a58f5477a40d1926d498)
* lib/messages.c add debug print for receipt of PING andHerb Lewis2000-10-121-0/+2
| | | | | | | REQ_DEBUGLEVEL messages utils/smbcontrol.c allow "q" to exit interactive mode. Exit on error from message_init. (This used to be commit cda8c0439113dcce02a681b0aaddf69326c0ec9a)
* Turns out we do need the pwnam check as on many systems the usersJeremy Allison2000-10-111-0/+7
| | | | | | primary group is not listed in the groups file... Jeremy. (This used to be commit b1cb7bec51963ac2ddc62dd1abbf8f8fa4351f9b)
* Fixed %d printf with unsigned long arg.Jeremy Allison2000-10-111-1/+1
| | | | | Jeremy. (This used to be commit 448ff58fd5a88b1fdadfb9a8e0bc5f38b707a4d3)
* changes to sync with 2.2. treeHerb Lewis2000-10-111-0/+12
| | | | | | | | | | | | | | | | | | .cvsignore remove config.h - not in this directory include/profile.h profile changes lib/messages.c added message to return debug level libsmb/clierror.c cast to get rid of compiler warning libsmb/smbencrypt.c cast to get rid of compiler warning profile/profile.c add flush profile stats changes for profile struct rpc_parse/parse_samr.c fix for compiler warning rpc_server/srv_samr.c cast to get rid of compiler warning smbd/ipc.c profile stats message.c profile stats smbd/negprot.c profile stats smbd/nttrans.c profile stats smbd/trans2.c profile stats utils/smbcontrol.c new flush stats command (This used to be commit bbb24daa25dca4e4b6b1f8942cd84ee3aa1bed8e)
* Fix to avoid calling getgrgid for no reason.Jeremy Allison2000-10-111-21/+9
| | | | | Jeremy. (This used to be commit b057a7349b2d6420f96a6ebc31822da66b39fe6c)
* Fixed nasty size wrong bug spotted by the eagle eyes ofJeremy Allison2000-10-101-1/+1
| | | | | | JF :-). Jeremy. (This used to be commit 443293a06530d0a5421b39d9a6a224d6ae316bd3)
* sys_popen got damaged when converted from FILE * to int fd I think.Jeremy Allison2000-10-081-14/+3
| | | | | | Patrick Powell kindly pointed out the bug. Jeremy. (This used to be commit 1f156b2420b7ecf1266e650efc3cee55362e29dd)
* Fix for printf attribute from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>Jeremy Allison2000-10-061-4/+4
| | | | | | Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk Jeremy. (This used to be commit e49566c2e21fcd16980e5110495645c5ae5a36da)
* Print socket options - patch from Dave Collier-Brown @ Sun.Jeremy Allison2000-10-061-2/+23
| | | | | Jeremy. (This used to be commit c18d6f8701c8e6ca03f9fff79cf28c842b3b5ff9)
* Herb's warning fixes. Also the POSIX locking fix.Jeremy Allison2000-10-061-1/+0
| | | | | | We now use our own vfs layer to do get/set acl calls (hurrah!). Jeremy. (This used to be commit dfe77c7046cbd65ee52aea7439f21503c1eac41d)
* Made re-init of stat cache explicit rather than being hidden.Jeremy Allison2000-10-041-4/+0
| | | | | Jeremy. (This used to be commit b0c40236bb4381fec0e812c20e5f8c09ebf005f9)
* Adding Herb's compile warning fixes to HEAD.Jeremy Allison2000-10-045-13/+17
| | | | | Jeremy. (This used to be commit d131ad1ce3f6e72e295f865a463f8dcbfa6f8d42)
* utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.Jeremy Allison2000-10-033-13/+476
| | | | | | mkdir high bits patch from Robert Dahlem" <Robert.Dahlem@gmx.net>. jeremy. (This used to be commit b40191d27180ab1e59935086073c4d312552f717)
* added a hack to get 64 bit locking working with the broken fcntl()Andrew Tridgell2000-09-291-0/+14
| | | | | | call in glibc 2.1.95. This hack only gets enabled if you define GLIBC_HACK_FCNTL64 (This used to be commit d8b9ec741cc57b5f3dd1b3ef782a7baed402beaa)
* Removed annoying unecessary debug message.Tim Potter2000-09-281-1/+0
| | | | (This used to be commit b1a893b74114ee4ab6a295ac0cb0e8fdccda3f53)
* Restructuring of the code to remove dos_ChDir/dos_GetWd and re-vector themJeremy Allison2000-09-272-292/+8
| | | | | | | | through the VFS. All file access/directory access code in smbd should now go via the vfs. Added vfs_chown/vfs_chmod calls. Still looking at vfs_get_nt_acl() vfs_set_nt_acl() call API design. Jeremy. (This used to be commit f96625ec124adb6e110dc54632e006b3620a962b)
* fix for IRIX compiler error messagesHerb Lewis2000-09-261-3/+3
| | | | (This used to be commit f2549db1ce6527c3e378e9f9210c70be5de93762)
* first cut at smbcontrol program. It currently allows syntax like:Andrew Tridgell2000-09-131-0/+43
| | | | | | | | smbcontrol nmbd debug 7 smbcontrol smbd debug 9 smbcontrol 3278 debug 1 smbcontrol nmbd force-election (This used to be commit 5f91c24636f5d82486f22c10bc55e060f9c518bf)
* fixed a race in the pipe() setup in sys_select()Andrew Tridgell2000-09-121-1/+1
| | | | (This used to be commit bb0f769272d8a8bd527053746b468bca797e1663)
* - fixed some memory leaks in the messages codeAndrew Tridgell2000-09-121-1/+28
| | | | | - added a MSG_PING message for performance testing. (This used to be commit e779f834dbb875669c3aa0a35b324aa13f0c8c36)
* - changed the msg_type to be an int instead of an enum so that it isAndrew Tridgell2000-09-122-14/+19
| | | | | | | | easier to add new message types to messages.h without breaking old binaries - added a MSG_FORCE_ELECTION message to force nmbd to hold an election (This used to be commit f1c49ca7ce56bc39259041a71479e84ebf53eeca)
* much nicer message interface. We now register dispatch functions,Andrew Tridgell2000-09-122-26/+62
| | | | | | | | | | allowing new bits of code or vfs modules to register functions without impacting on the messaging code itself. Also note that multiple registrations for the same message type are possible allowing the same message to be delivered to multiple parts of the code (possibly useful for reload messages). (This used to be commit c3350c77f52cade48d2945574e09cb630af85b92)
* the first cut of the internal messaging system.Andrew Tridgell2000-09-112-44/+254
| | | | | | The motivation for this system is to replace the UDP message for oplocks, but this commit only does the "set debug level" message. (This used to be commit 2a34ee95f3929cff131db6c5a2b4820194c05b2d)
* Changes from APPLIANCE_HEAD (per Tim Potter):David O'Neill2000-09-011-0/+75
| | | | | | | | | | | | | | | | | | | | - make proto - addition of function to convert from errno values to NT status codes (source/lib/error.c) - purge queue done without full access permission will purge only the jobs owned by that user, rather than failing. - unlock job database tdb before sending job to printer - in print_job_start(), ensure that we don't pick a jobid with an existing temporary file that may be owned by another user, as it causes silent failures. - fixes for printer permission checking for NT5 clients (source/include/rpc_spoolss.h, source/printing/nt_printing.c, source/printing/printing.c, source/rpc_server/srv_spoolss_nt.c) - change from uint8 to 'enum SID_NAME_USE' (source/rpc_server/srv_lsa.c) - fixed memory leaks for win95 driver download process (source/smbd/lanman.c) - properly free prs_structs and dacl in testsuite/printing/psec.c (This used to be commit 74af3e2caec7197e5d1ca389e2f78054a4197502)
* -U% should be an anonymous connection. Fixed bug whereGerald Carter2000-09-011-1/+2
| | | | | | | | | | | | the password was being set to "" instead of NULL. ..and yes Elrond, I'll merge this into TNG. P jerry (This used to be commit cc611ecc674832f7e7390b5e7ad6648c9d622e9e)
* Implemented AbortPrinter() from Gerald's Win32 test code. Just purge allJeremy Allison2000-08-301-0/+2
| | | | | | | possible printjobs from that printer (I think this is correct). Added error code returns for print_queue_XXX() functions. Jeremy. (This used to be commit 6d081a9017f87f59b7189ba507e211db01c40af5)
* added -P (for no prompt) and -A <authfile> optionsGerald Carter2000-08-291-22/+92
| | | | | jerry (This used to be commit 2d95c38f7e65a0379cbaadd57b8eb41d830b5a6b)
* needed to use strwicmp() in smbclient code, so I moved it to util_str.cGerald Carter2000-08-291-0/+30
| | | | | | | | | and made it non-static --jerry (This used to be commit dfdca21bd90b9c83f195d580ec9d774f1be8f9cb)
* made reopen_logs() always re-open logs, not try and be smart about notAndrew Tridgell2000-08-281-37/+34
| | | | | | re-opening in some circumstances. This fixes a problem where a HUP does not re-open logs and leaves the log open on a unlinked file. (This used to be commit f99f028c77482e591741df2a3da7f036f7409a68)
* - fixed the %U macro so that the old (and documented) semantics workAndrew Tridgell2000-08-251-2/+13
| | | | | | | | | | again. This got broken with one of the substitute.c updates a couple of months ago. - also fixed %u to return the username from the current_user structure when called via a method that does not have direct access to the username. I cache the uidtoname() result to prevent thrashing nss. (This used to be commit 2520a0eff9c5decbec79aababe9910db3535890a)
* Added code to do SID to uid/gid conversion. Needed for ACL support.Jeremy Allison2000-08-231-2/+2
| | | | | Jeremy. (This used to be commit 81c5380f91839b6416c8a42739dadf00e7388528)
* oops. must return "" string and length zero when strlen(filebuf) == 0Luke Leighton2000-08-181-13/+16
| | | | (This used to be commit d3bc7cca99e47ce89035a03022d7c3ec69e01636)
* getfileline() - line with length of zero -> filebuf[strlen(filebuf)-1]Luke Leighton2000-08-181-10/+13
| | | | | is NOT ok. (This used to be commit 24e0c8ef70dc59bfaaa113c3d44befbccbcba15f)
* Reverted the change Luke made. Removed IS_BITS_SET_XX macros.Jeremy Allison2000-08-141-13/+7
| | | | | | | | | Do not re-add them. These macros are unsafe as they are not understood. Change all TNG code using them to correct '&' and '|' please. IS_BITS_SET_ALL was being used in cmd_interp.c when IS_BITS_SET_SOME should have been used. Jeremy. (This used to be commit be4e5eeb4f808c1d8ac4030e8886a83a37914c57)
* hey, jerry: turns out you _have_ converted to get_safe_nt_errmsg!!!Luke Leighton2000-08-141-2/+4
| | | | | | | [got confused with which way dirdiff was going :)]. ... but you forgot to update TNG's lib/cmd_interp.c... (This used to be commit 8fe195df0b5826af7048ef6c87e4b55dfd336cf8)
* jeremy,Luke Leighton2000-08-141-11/+15
| | | | | | | | | | | | | | | | | | please do not remove IS_BITS_SET_XXX macros just because you happen "not to like them". whilst still working on merging, you are not responsible for this code, therefore do not hinder its development whilst people are attempting to do merges. after the merge from TNG to cvs main is completed, you can do what the hell you like. thank you. jerry, please could you consider adding underlying routines (in this case get_safe_smb_errstr()) instead of reverting to a [less secure] previous coding method. thanks. (This used to be commit b2e044f89de7cb12fd14540d5d7d5070951ce2fb)
* fixed unistr_to_ascii to deal with NULL src stringsGerald Carter2000-08-121-14/+14
| | | | | jerry (This used to be commit 8e95aae1709a9be28d6e25ff6f0fdc729dc09274)
* reworked talloc() to in order to help track down invalidGerald Carter2000-08-121-25/+26
| | | | | | | | | | | | | | | | | | memory access. Tridge, I don't think using 0xdeadbeef for size allocations of 0 is going to work. I ended up having to use NULL as much code that works on UNISTR checks to see if the buffer ptr is NULL. So valid code ends up with a seg fault. Rather than rewriting it all, I added a DEBUG_TALLOC #ifdef in talloc.h that sets a macro BAD_PTR. This is the value assigned to ptr for an allocation of 0 bytes. jerry (This used to be commit 233b9cffa2350552d9f775f791d5d5e0464a1ed4)
* Tidied up security rights definitions.Jeremy Allison2000-08-101-4/+4
| | | | | Jeremy. (This used to be commit e466c863f5540e13776f4477b6d58e3fbfe7276d)
* Removed requirement that sid have an owner before being interpreted.Jeremy Allison2000-08-101-18/+9
| | | | | | Thanks to Elrond for pointing this out. Jeremy. (This used to be commit 1d9a5494f8214b8d6171073f4090687a8535d78c)
* Deal will NULL UNISTR in unistr_to_asciiGerald Carter2000-08-101-13/+21
| | | | | jerry (This used to be commit cfa4c878a2ccaf346940f8f4a201737e185f76d6)
* talloc returns 0xdeadbeef when asked to allocate 0 bytesGerald Carter2000-08-101-19/+29
| | | | | jerry (This used to be commit df51dc32f6ffc4fe2cebfaae5079417aad1ff34d)
* Fixed memory leak with NT tokens.Jeremy Allison2000-08-091-2/+15
| | | | | | | Added debug messages to se_access_check(). Added FULL_ACCESS acl to default acl on printers. Jeremy. (This used to be commit 7507f6f408cf8b0f8d7e2b3da54ce5fb5ef5343b)
* Added SID "Everyone" S-1-1-0 as always matching if present in an ACE.Jeremy Allison2000-08-081-4/+17
| | | | | Jeremy. (This used to be commit b3a1038ac1bfb0c32e64f6cb26e5e46fbda794a2)