1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

846 Commits

Author SHA1 Message Date
Jeremy Allison
e0f5d84e9d Fix for problem with "" string in trim_string(). Pointed out by Ben Winslow <rain@bluecherry.net>.
Jeremy.
(This used to be commit df2e306171f0a71af77dbaafc7ccbf78e27befb8)
2001-05-10 23:17:46 +00:00
Tim Potter
281629ac06 Added sid_peek_rid() function to return the rid of a sid. Saves mucking
around with copying a sid to a temporary variable and using sid_split_rid().
(This used to be commit 9ee43d61be1284b72fd04054c44545847c73120f)
2001-05-10 00:48:06 +00:00
Tim Potter
9051f1e2c7 Bumped up debug level on set socket options from 3 to 5.
(This used to be commit f0b8ff4eeb3f276c37d062dbd25f7c8b0a02d593)
2001-05-10 00:35:24 +00:00
Tim Potter
b50d072529 Hey what happened to my debug messages? Early exit from reopen_logs()
if using stdout_logging.
(This used to be commit 831b0983bd799fd73de18921f09991a1647ec482)
2001-05-07 23:46:48 +00:00
Andrew Tridgell
9d5348c758 removed need for scandir in client.c
fixed possible bug with readdirname on systems with NAMELEN != strlen
(This used to be commit 78f448b7d4b83f569d27e0abf6b1759c43ff21f3)
2001-05-07 05:19:52 +00:00
Tim Potter
a36f9250e7 Preliminary merge of winbind into HEAD. Note that this compiles and links
but I haven't actually run it yet so it probably doesn't work.  (-:
(This used to be commit 59f95416b66db6df05289bde224de29c721978e5)
2001-05-07 04:32:40 +00:00
Andrew Tridgell
fe6b398a79 fix interfaces.c for aix 3.2.5
(This used to be commit a69532ffde761453f3d9189be2fbf1036c2ed196)
2001-05-07 03:21:23 +00:00
Tim Potter
3762d48404 Some versions of readline don't have rl_completion_func_t. )-:
Spotted by http://build.samba.org/
(This used to be commit da5a0f5c5b0917148fb6b668d4316aa4924708a1)
2001-05-07 02:03:32 +00:00
Tim Potter
3bb92410a4 Fixed compiler warning.
(This used to be commit 063c2dea920dbf415e22d0359baa7b36bf513f09)
2001-05-07 01:08:41 +00:00
Andrew Tridgell
9074322761 replace modf so we don't need the math library
(This used to be commit 79c0d24a3092098d3d8e58ebe07cf61db7d898e5)
2001-05-06 15:19:25 +00:00
Jeremy Allison
c6e8e75a64 Merging Gerald's PDC SAM name fix.
Jeremy.
(This used to be commit d31799850440c6c2267a4edb217d447df75aab5a)
2001-05-03 02:50:11 +00:00
Jeremy Allison
aac630b382 Had to add a "pam password change" parameter (defaults to "off") and inlined
the pam password change code to ensure that existing and working password
chat scripts don't break with 2.2.1. PAM password changing has to be explicitly
requested.
Allowed wildcards in pam password change matching (matches password chat
script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to
stop warnings. Don't worry - the const changes are isolated and don't
cause any other warnings :-).
Jeremy.
(This used to be commit 47b4d82536c09bffe3a0d9917fa31d935f1be7d8)
2001-05-02 23:32:09 +00:00
Jeremy Allison
75da59c8ad Fixed password entry caching bug pointed out by Elrond.
Jeremy.
(This used to be commit dc31b47deda188cb88288a8f33dc09faed9b2c41)
2001-04-30 22:56:52 +00:00
Andrew Tridgell
3c71214d47 don't need slprintf.c any more
(This used to be commit 025285e179924024f069a31a65b124bd45a249af)
2001-04-28 13:52:50 +00:00
Andrew Tridgell
d095b5249c - added test for vasprintf
- cleaned up GNUC printf attribute macros
- added enum handling in mkproto
- removed non-vararg code
- made slprintf and vslprintf just macros for snprintf and vsnprintf
- don't need slprintf code any more
(This used to be commit c7aeb2254dfc3cd0aa0b6c0bdd426f9323be0ddf)
2001-04-28 13:49:34 +00:00
Andrew Tridgell
5671e632f8 got asprintf defn right
(This used to be commit 531ab0917004cc1dbbdc4a2b6b8d41f354dd2da7)
2001-04-28 12:27:37 +00:00
Gerald Carter
3a44e2364b few cleanups to bring in line with 2.2
(This used to be commit 0feaac00a1847af41464d4ce35821ff851cded9c)
2001-04-28 01:07:27 +00:00
Jeremy Allison
c11887e325 More debug %d -> %u issues.
Jeremy.
(This used to be commit 6fcb600dcd23c61d1a7d2ce8c2b7b2eea2e58623)
2001-04-27 22:17:10 +00:00
Jeremy Allison
5345d9eb57 More %d (uid_t) stuff...
Jeremy.
(This used to be commit 73b425121a8c99af3ed7adbdcff3f6f0cec92ac7)
2001-04-27 22:02:23 +00:00
Jeremy Allison
c08fc869ce Don't use variables called "acl" as it's the name of a function in Solaris.
Jeremy.
(This used to be commit 277eb517e25eb3910057336b2bee18875dffe6cc)
2001-04-27 21:20:20 +00:00
Andrew Tridgell
975f67c55a added much better snprintf code, plus new function asprintf
(This used to be commit 10327ad11f9a97bf536dc772c9577d8f6809c829)
2001-04-27 02:45:08 +00:00
Jeremy Allison
38df1d94be Fixed %U and %D substitutions. %U is lowercase user name, %D is uppercase
domain name.
Jeremy.
(This used to be commit 5f005952f6d8c281cf91ac0855e83342a2fd7e45)
2001-04-25 18:39:31 +00:00
Jeremy Allison
9319a9484c Fix proto's in old code.
Jeremy.
(This used to be commit 86c7c654effcfb86c99daac63e68844e1a4aaf56)
2001-04-21 07:53:40 +00:00
Gerald Carter
911975c88f merge from 2.2
(This used to be commit f87f3707f3d5f205d0287381d71380264a711666)
2001-04-20 15:39:51 +00:00
Gerald Carter
0fc676c335 merge from 2.2
(This used to be commit 79f4c4ad74149f4b1a8a5a82d8ca8d2474a23ab3)
2001-04-19 23:13:38 +00:00
Jeremy Allison
6f78636a56 Removed mktemp from HEAD - same as done in 2.2.
Jeremy.
(This used to be commit 121b59669fbcd1aaedb08011ff36169fc6561c55)
2001-04-18 05:12:46 +00:00
Jeremy Allison
82afede9fa Merged Andrew's wfw fix (2).
Jeremy.
(This used to be commit a4fb755a48d27f21bd0a5d9e9d1227a08c13bdff)
2001-04-17 07:09:42 +00:00
Jeremy Allison
8a1c2e0298 AIX ACLs donated by IBM.
Merge Andrew's fnmatch fix for WfW.
Jeremy.
(This used to be commit 1d4438f07745df3d02ed8ab3ef048e20016816b6)
2001-04-17 05:41:07 +00:00
Jeremy Allison
78ac23f7e0 Added Darwin guess.
lib/util_str.c: Excellent patch from  Kenichi Okuyama <okuyamak@dd.iij4u.or.jp>
to speed up trim_string handling !
Jeremy.
(This used to be commit 4bb63ba615c735a298a6cbda2c87242695104978)
2001-04-15 22:21:04 +00:00
Jeremy Allison
e7a6cb234a Removed one samba-bugs ref. from source.
Jeremy.
(This used to be commit d40ee1707d1d3cf04358bca7fad16ebc15bd4845)
2001-04-14 21:26:45 +00:00
Jeremy Allison
ed449b8ca7 Added POSIX_ACL support for *BSD. Patch from jedgar@fxp.org. Changed
a bit to use AC_TRY_LINK to ensure functions are available for link
instead of AC_TRY_COMPILE.
Jeremy.
(This used to be commit c23628746342b6afa28cb34b0b4eaa61189ad390)
2001-04-14 19:46:28 +00:00
Jeremy Allison
9444e9d9f3 Michael Davidson <md@sco.COM> pointed out that acl_get_qualifier can potentially
return a malloced area so added sys_acl_free_qualifier() calls to all supported
ACL interfaces to code with this (only Linux needs actual free call).
Jeremy.
(This used to be commit 5870e6019b82d2088b99acdc0f84e9e4847a1fa5)
2001-04-13 21:11:57 +00:00
Jeremy Allison
3c2c047e82 Added fix from "Eric Boehm" <boehm@nortelnetworks.com> to try and set hard
limit before setting soft limit.
Jeremy.
(This used to be commit a1eb2752a8bee9cc7d92c664c3de84e02620933d)
2001-04-13 19:33:26 +00:00
Jeremy Allison
2ef68c7e92 Merge of Andrew's changes in 2.2.
Jeremy.
(This used to be commit fc76681812b1469208ad6c8847afdfc68bc6db49)
2001-04-13 19:12:06 +00:00
Jeremy Allison
50e78a9ac8 As Andrew suggested, make smbrun return a fd for a deleted file which can then
be read.
Jeremy.
(This used to be commit e7d59d6de89a5fdd201e4b5c6072dab08b1519db)
2001-04-13 00:37:00 +00:00
Jeremy Allison
874356646a Can't use space in random string used for exec.
Jeremy.
(This used to be commit 8ab1d5663e6b25bc101cd388ef6c312ddb88b988)
2001-04-12 07:20:15 +00:00
Jeremy Allison
09a5daf032 Changed lp_add/delete/enum scripts to use lockdir if spool dir doesn't
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-12 07:00:08 +00:00
Jeremy Allison
e5691d44a8 Merged John's changes.
Jeremy.
(This used to be commit add847778bf458238bf2a1b14ab71b8cdfd7aec0)
2001-04-12 05:32:27 +00:00
Jeremy Allison
6578fd8742 To stop people complaining about the mktemp call, move it into lib/util.c. 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-11 23:19:08 +00:00
Jeremy Allison
91e97f9091 Changed the order of -kPIC and -kpic.
Added patch from Michael Davidson <md@sco.COM> for Solaris/Unixware ACLS.
Jeremy.
(This used to be commit 144a2906810e8d4414d627835eb80f60bd1d88a4)
2001-04-11 02:02:45 +00:00
Jeremy Allison
3bfbc4aaec Fixed --with-automount compile error.
Jeremy.
(This used to be commit ab916199f542528293b3f63fe6f24eecd83eccb4)
2001-04-10 21:43:37 +00:00
Jeremy Allison
f9a15ce1a6 Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
(This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)
2001-04-08 20:22:39 +00:00
Jeremy Allison
fd4c525d58 If we can't open the username map file, at least print the strerror.
Jeremy.
(This used to be commit abf436153a476b7c5a7bff31f1e657b8f53b9dee)
2001-04-06 17:13:16 +00:00
Jeremy Allison
45646e8818 Fix from Michael Davidson <md@sco.COM> to merge Solaris and UnixWare ACLs.
Jeremy.
(This used to be commit ffa800e980bfed3d82ec7b0a037085c4558f8f0f)
2001-04-05 20:52:02 +00:00
Jeremy Allison
730791a6a8 Tidy up tmp file handling.
Jeremy.
(This used to be commit 1751a6316af91d5d2e31c3a7e8de2841aae033c7)
2001-04-05 19:17:54 +00:00
Jeremy Allison
a6d201a8d7 Added XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.
Jeremy.
(This used to be commit 0865366f6b1070a8db3d8421c37c8072b36b96e3)
2001-04-03 00:40:01 +00:00
Jeremy Allison
6c0c14a742 IRIX ACLs from Herb.
Jeremy.
(This used to be commit 2f2365e93833e5f08dc14ab0022dd9f6f0d028ad)
2001-04-02 23:05:25 +00:00
Jeremy Allison
9f793948bd include/ntdomain.h:
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-04-02 22:27:40 +00:00
Jeremy Allison
92368833fa configure configure.in include/config.h.in lib/replace.c: Added test and 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-31 19:06:45 +00:00
Jeremy Allison
e53d7eb25e Patch from David Gibson <dgibson@linuxcare.com> to reduce "silent abort"
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-27 01:19:54 +00:00