summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2001-04-12Can't use space in random string used for exec.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 8ab1d5663e6b25bc101cd388ef6c312ddb88b988)
2001-04-12Changed lp_add/delete/enum scripts to use lockdir if spool dir doesn'tJeremy Allison1-0/+24
exist for printer. Rather than using pid for suffix, use a 16 byte random string. Created generate_random_str() function in genrand.c. Still needs more testing but this is the way to go. Jeremy. (This used to be commit 71a330987f990007beb16f00fc468107361b5e9d)
2001-04-12Merged John's changes.Jeremy Allison1-3/+3
Jeremy. (This used to be commit add847778bf458238bf2a1b14ab71b8cdfd7aec0)
2001-04-11To stop people complaining about the mktemp call, move it into lib/util.c. ↵Jeremy Allison3-2/+15
Thanks to Andrew for all this code. Fixed extra line in lib/sysacls.c that broke XFS ACL code. Jeremy. (This used to be commit 9b32b8a8cfc8ddb93c14d5581f433d2e93f89ed2)
2001-04-11Changed the order of -kPIC and -kpic.Jeremy Allison1-4/+6
Added patch from Michael Davidson <md@sco.COM> for Solaris/Unixware ACLS. Jeremy. (This used to be commit 144a2906810e8d4414d627835eb80f60bd1d88a4)
2001-04-10Fixed --with-automount compile error.Jeremy Allison1-2/+2
Jeremy. (This used to be commit ab916199f542528293b3f63fe6f24eecd83eccb4)
2001-04-08Got "medieval on our ass" about adding the -1 to slprintf.Jeremy Allison6-7/+7
Jeremy. (This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-04-06If we can't open the username map file, at least print the strerror.Jeremy Allison1-1/+1
Jeremy. (This used to be commit abf436153a476b7c5a7bff31f1e657b8f53b9dee)
2001-04-05Fix from Michael Davidson <md@sco.COM> to merge Solaris and UnixWare ACLs.Jeremy Allison2-560/+52
Jeremy. (This used to be commit ffa800e980bfed3d82ec7b0a037085c4558f8f0f)
2001-04-05Tidy up tmp file handling.Jeremy Allison1-7/+2
Jeremy. (This used to be commit 1751a6316af91d5d2e31c3a7e8de2841aae033c7)
2001-04-03Added XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.Jeremy Allison1-0/+214
Jeremy. (This used to be commit 0865366f6b1070a8db3d8421c37c8072b36b96e3)
2001-04-02IRIX ACLs from Herb.Jeremy Allison1-0/+244
Jeremy. (This used to be commit 2f2365e93833e5f08dc14ab0022dd9f6f0d028ad)
2001-04-02include/ntdomain.h:Jeremy Allison1-2/+2
rpc_server/srv_lsa_hnd.c: Remove back pointer from policy handle list as the pipe that opened the handle may have been closed. We were dereferencing into something that had been closed. rpc_parse/parse_spoolss.c: Sync up with Gerald's changes in 2.2. lib/replace.c: Don't do proto on setlinebuf as it differs between systems. Jeremy. (This used to be commit 887ef3e12dc56b89b2284d42b16a81f03e15110b)
2001-03-31configure configure.in include/config.h.in lib/replace.c: Added test and ↵Jeremy Allison1-0/+7
replacement for setlinebuf which apparantly doesn't exist on HPUX 11. include/byteorder.h: rpc_parse/parse_prs.c: Ding Dong the witch is dead ! :-). Ok, I'm happy 'cos I've finally deleted all the *HORRIBLE* DBG_RW_XXX and RW_XXX macros from include/byteorder.h. They were macros that included macros that had conditional macros included. No one understood them (they were the cause of most of the bigendian issue bugs). Finally, I went into parse_prs.c and inlined all of that stuff with regular function calls. They're understandable, they're easy to edit and they don't include macros ! JF - please look at the one comment I added (JF PLEASE CHECK). I have tested this partly with IRIX (a bigendian system) running with AS/U on a Solaris box in SGI's lab, and I've also confirmed these new changes work with W2K (vmware) but there may be the odd bug lurking. Herb, if you could re-checkout and test again with this code that would help. Extra. Fixed bug spotted by the sharp eyes of JF - big endian unicode packet would cause a early truncate of string parsing as we were checking for a char * 0, not a uint16 * 0. Jeremy. (This used to be commit 13765eca71e54aa5d048ce36cd8066b8406777c8)
2001-03-27Patch from David Gibson <dgibson@linuxcare.com> to reduce "silent abort"Jeremy Allison1-51/+83
problems with smbd failing to create a log file. If we can't create a log file keep using the old file. Jeremy. (This used to be commit c4e6aa1322fa7bc59708163c42eef6ccbd6c2305)
2001-03-27merge from 2.2Gerald Carter1-8/+71
(This used to be commit 3a03065b43d073205e421434bc32082c0f9f64da)
2001-03-26Fix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and ↵Jeremy Allison1-0/+16
smb.conf file in utf8. Jeremy. (This used to be commit 42052d6079479452aa43eb37ad3d679d28337779)
2001-03-26Patch to make automount lookup fallback to get home directory from getpwnam.Jeremy Allison2-28/+40
From Robert Montjoy <Rob_Montjoy@ECECS.UC.EDU>. Jeremy. (This used to be commit 1fe60064bddf29fd778918d3f1a7026002029bd7)
2001-03-23Added Gerald's fixes.Jeremy Allison1-1/+0
Jeremy. (This used to be commit be825b07464f54d717333318a08154cff632f706)
2001-03-23a much simpler talloc() implementation. This version has the followingAndrew Tridgell1-29/+36
advantages: - memory is trackable by insure - a very simple talloc_realloc() is possible (I've added it) It is slower than the previous talloc code, but I don't think that is going to be a problem. If it is a problem then there are some ways we can make it faster but I'd like to leave those until we have tested this a bit and can see what performance problems might show up in profiling (This used to be commit 1ab63cf3a6f62c3e4ca19a549bde78dad0eb4340)
2001-03-23Sync up with 2.2 ACL code.Jeremy Allison1-4/+0
Jeremy. (This used to be commit 5b9a88c2d0da3479f91131f66ff741e88f9760ee)
2001-03-22New POSIX ACL mapping code. Works with UNIX permissions, now for testingJeremy Allison1-0/+20
with real ACLs... Jeremy. (This used to be commit 852b9e15ac245a593460cfff3f629d0333372e41)
2001-03-19Added sys_dlopen/sys_dlsym/sys_dlclose.Jeremy Allison1-0/+31
Jeremy. (This used to be commit 49f0e7e7143f82bce9dfd8b06e9e515bc0869ab7)
2001-03-19fixed rpcclient readline codeAndrew Tridgell1-1/+1
(This used to be commit 4ec971e905cefada5f3980a25781730acdbf4469)
2001-03-19added basic command completion supportAndrew Tridgell1-1/+6
(This used to be commit 386fdff2dfeaeef60b210ebc0b4d33a6c7b5d5ec)
2001-03-18much simpler readline codeAndrew Tridgell1-73/+44
should work with readline 2.x (This used to be commit 7940b6b0cf614ac72266d9e600220c9a9dbd2a43)
2001-03-18much better readline support from Simo Sorce, with some mods from meAndrew Tridgell1-0/+126
to make it a bit simpler (This used to be commit e1487eb2c4626dbe0cc3b17606eda702cedef28b)
2001-03-17removed useless debug msgAndrew Tridgell1-3/+0
(This used to be commit 348ebe30d047d69968df0f33b227e52b5bbabafe)
2001-03-17lib/system.c (Finally) fixed all insure errors in password caching code. We ↵Jeremy Allison1-56/+53
can't stop libc routines from calling getpwXXX functions, so caching a pointer to them is impossible. This new code now makes two copies of the returned struct passwd struct - one used as a cache, one returned to allow the caller to modify. When doing a lookup we compare against the cached copy. Code is now easier to understand also. smbd/posix_acls.c: If we move the head of the linked list, remember to pass a reference to that pointer..... Jeremy. (This used to be commit af364b93d92f70aa52195c46d3cc516830752609)
2001-03-15AS/U on a sparc now joins and authenticates against a Samba PDC !Jeremy Allison1-69/+1
Jeremy. (This used to be commit 28a0bc5f5710aa732db662caa38f9da2138b5db2)
2001-03-13Fixed reading of strings from big-endian RPC clients.Jeremy Allison1-0/+68
Jeremy. (This used to be commit e7ecb9410ff2e4fcd33bca9f82e14c060590942a)
2001-03-11Dead code removal. Not used anywhere.Jeremy Allison2-730/+0
Jeremy. (This used to be commit 90f334be23c20aa2a8a947e58907bd7854148574)
2001-03-11Merge of new 2.2 code into HEAD (Gerald I hate you :-) :-). Allows new SAMRJeremy Allison7-15/+24
RPC code to merge with new passdb code. Currently rpcclient doesn't compile. I'm working on it... Jeremy. (This used to be commit 0be41d5158ea4e645e93e8cd30617c038416e549)
2001-03-10started support for unicode on the wire in smbd. Using a very similarAndrew Tridgell1-0/+9
method to what was used in the client I now have session setup and tconx working. Currently this is enabled with SMBD_USE_UNICODE environment variable. Once the code is complete this will become a smb.conf option. (This used to be commit 7684c1e67294266d018c6f0cab58f1a9d797174f)
2001-03-09Serious (and I *mean* serious) attempt to fix little/bigendian RPC issues.Jeremy Allison1-1/+1
We were reading the endainness in the RPC header and then never propagating it to the internal parse_structs used to parse the data. Also removed the "align" argument to prs_init as it was *always* set to 4, and if needed can be set differently on a case by case basis. Now ready for AS/U testing when Herb gets it set up :-). Jeremy. (This used to be commit 0cd37c831d79a12a10e479bf4fa89ffe64c1292a)
2001-03-07Sync up handle creation with 2.2 branch. We can now join AS/U domains andJeremy Allison1-8/+3
authenticate against them. Big/little endian issues fixed. Jeremy. (This used to be commit 0e6a34510ed598eaec7fe71a9c91fda528a4675c)
2001-03-01Fixed a couple of getpwXX calls that were not going through the sys_getpwXXJeremy Allison1-2/+2
cache. Jeremy. (This used to be commit a648935ae93f781aedba8f89b0071a24e42f4543)
2001-02-28Move to talloc control of SPOOL_XXX structs. Move to talloc control ofJeremy Allison2-10/+18
security descriptors and pointers. Syncup with 2.2 tree. Jeremy. (This used to be commit 14d5997dc841e78a619e865288486d50c245896d)
2001-02-27Added total memory allocated counter to talloc, so we can tell if a tallocJeremy Allison1-0/+22
pool is getting bloated. Also added a talloc_zero function to return zeroed memory. Added debug in rpc_server/srv_pipe_hnd.c so we know when a talloc pool is being freed. Syncup with srv_pipe_hnd.c from 2.2 so we are freeing memory at the same time. Jeremy. (This used to be commit d3a56c6042acf037bbd53de88d7636a5803ead20)
2001-02-25rpc_client/cli_netlogon.c: Fixed incorrect printf.Jeremy Allison1-0/+536
Added Solaris ACL support. Jeremy. (This used to be commit f0d11b6997cc46a0210adef8cf572cf8b7e2467a)
2001-02-23- fixed the sort_acl bug, sorting now works rightAndrew Tridgell1-9/+20
- don't allow setting of duplicate ACEs - fixed a ACE delete bug (This used to be commit 61293979ce2aded58a5ef2a54b3b05d1d278f7cf)
2001-02-23Always increment even if the read fails (otherwise we spin if we hit the ↵Jeremy Allison1-1/+4
kernel bug...). Jeremy (This used to be commit d388dfa53b3a7a2dcce6d5591531d6ade0cbab62)
2001-02-22lib/select.c: Fix for Linux 2.0.x kernel that causes select to return true ↵Jeremy Allison1-0/+15
on a pipe and then a blocking read to fail. Make the pipe read/write non blocking. printing/printing.c: Added a mutex around the code that enumerates all the jobs in a print queue. Allows only one smbd to be doing this at any one time. This fixes a capacity problem discovered at HP with <10,000 jobs in a print queue. Jeremy. (This used to be commit 0d3ae603a2b86d476458ee2a7d4f7d22636c3f66)
2001-02-21make ascii_to_unistr always use little-endian. This fn is never usedAndrew Tridgell1-2/+5
except in my code so I know this is safe. otherwise unicode client lib doesn't work on big-endian hosts (This used to be commit 18ede716d10de1ac774cca82b4b8ff5ea1a9650d)
2001-02-20- neater setting of bccAndrew Tridgell1-6/+16
- converted cli_rename and cli_unlink (This used to be commit 0a8992e224b7a3d90d45b13d73fa8a6f155efa79)
2001-02-20up the debug level of the debug level change msgAndrew Tridgell1-2/+2
(This used to be commit 9b25342f4ac4a250b3a10a3bb048ca6baa2ca41e)
2001-02-20initial client side unicode support (needed for netapp filer)Andrew Tridgell1-1/+1
I've currently got this code disabled by default as it is incomplete. You enable it by setting a USE_UNICODE environment variable. Once the support is complete this check will be removed and the CAP_UNICODE capability bit will be the sole determination of whether the client library code uses unicode right now I have converted session_setup and tconx. I will do more fns over the next few days. see clistr.c for the new client side string interface. Luckily it tends to make the code smaller and neater while adding unicode support. (This used to be commit e1a04e621f1c28d8e6e543d43741ca0272e2237f)
2001-02-16Excise snprintf -> slprintf.Jeremy Allison2-7/+8
srv_samr.c: duplicate gid fix. srv_spoolss_nt.c: Merge of JF's work. uid.c: Fix for returning names when a PDC. Jeremy. (This used to be commit d938ad6963a2dd4eda930d508600ec1902dc2b16)
2001-02-15Patch to add UnixWare ACLs from Michael Davidson <md@sco.COM>. With someJeremy Allison1-0/+559
small modifications, this code may also work on Solaris, as they are derived from the same SVR4 codebase. When the Samba Solaris box is up and running again I will test this. Jeremy. (This used to be commit f8db87b0978be981448eafd57163703e3aeec2cb)
2001-02-15samba/source/nmbd/nmbd.c change remote_machine name to nmbd insteadHerb Lewis1-5/+7
of nmb so we write to same log file that was originally created as log.nmbd samba/source/smbd/server.c change remote_machine name to smbd instead of smb so we write to same log file that was originally created as log.smbd samba/source/lib/interface.c allow binding to all interface IP addresses even if on same subnet. This allows you to specify which IP's you want in interfaces line and use bind interfaces only (This used to be commit 01dfd59712f3730498784d7632da8fe0113d55b6)