kai/samba.git
20 years agoAdding Solaris packaging files to HEAD.
Shirish Kalele [Wed, 11 Apr 2001 02:28:38 +0000 (02:28 +0000)]
Adding Solaris packaging files to HEAD.
(This used to be commit 3ac5f6b59ee30d12bfec0cc36cf00b9e9798a453)

20 years agoChanged the order of -kPIC and -kpic.
Jeremy Allison [Wed, 11 Apr 2001 02:02:45 +0000 (02:02 +0000)]
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)

20 years agoFixed some compiler warnings.
Tim Potter [Wed, 11 Apr 2001 01:50:12 +0000 (01:50 +0000)]
Fixed some compiler warnings.
(This used to be commit cda0f211b0dd41ae72ef3d65b9476c11c6f72de3)

20 years agoAdded SMB_ prefix to enums that clash with Solaris ACL definitions.
Jeremy Allison [Wed, 11 Apr 2001 01:34:37 +0000 (01:34 +0000)]
Added SMB_ prefix to enums that clash with Solaris ACL definitions.
Jeremy.
(This used to be commit 493d2c316a9e80de0239ef3a6f0b3f4ec9ac6e13)

20 years agoUpdating pampass from Samba-2.2 code tree. ===> JHT
John Terpstra [Wed, 11 Apr 2001 01:29:42 +0000 (01:29 +0000)]
Updating pampass from Samba-2.2 code tree. ===> JHT
(This used to be commit 88b6043b4e26c2771e0c444376b7017f5048baf8)

20 years agoRestrict dfs add and dfs remote to root at Shirish's advice.
Jeremy Allison [Wed, 11 Apr 2001 00:05:23 +0000 (00:05 +0000)]
Restrict dfs add and dfs remote to root at Shirish's advice.
Jeremy.
(This used to be commit 9dd77c4fb1282d23cfbfd9d0ed790be62534e201)

20 years agoMerged in missing break fix from Shirish.
Jeremy Allison [Tue, 10 Apr 2001 23:58:27 +0000 (23:58 +0000)]
Merged in missing break fix from Shirish.
Jeremy.
(This used to be commit 8ecf6c33673693ca64f99bd7fb26d3383658d86b)

20 years agoFixed missing HAVE_STDARG_H.
Jeremy Allison [Tue, 10 Apr 2001 22:01:53 +0000 (22:01 +0000)]
Fixed missing HAVE_STDARG_H.
Jeremy.
(This used to be commit 7cdd87954634cadda042df06c2f56aac40a7d743)

20 years agoFixed --with-automount compile error.
Jeremy Allison [Tue, 10 Apr 2001 21:43:37 +0000 (21:43 +0000)]
Fixed --with-automount compile error.
Jeremy.
(This used to be commit ab916199f542528293b3f63fe6f24eecd83eccb4)

20 years agoAdded HAVE_STDARG_H to tdbutil.c
Jeremy Allison [Tue, 10 Apr 2001 21:07:04 +0000 (21:07 +0000)]
Added HAVE_STDARG_H to tdbutil.c
Jeremy.
(This used to be commit e404e001990409eacf2e620d2269c2b162fa938b)

20 years agopassdb/pass_check.c: Ensure second check is done only if given username is all in...
Jeremy Allison [Tue, 10 Apr 2001 19:43:14 +0000 (19:43 +0000)]
passdb/pass_check.c: Ensure second check is done only if given username is all in caps.
rpc_server/srv_srvsvc_nt.c: Added "CONFIGFILE" arg to scripts so path to smb.conf is given.
Jeremy.
(This used to be commit 3c4c649951464be51541d5890afb997e3ecfcd23)

20 years agoAdded JohnT and Andrew Bartlett's PAM changes.
Jeremy Allison [Tue, 10 Apr 2001 18:10:38 +0000 (18:10 +0000)]
Added JohnT and Andrew Bartlett's PAM changes.
Jeremy.
(This used to be commit ecd00e258c6fe4e8d90f48da74874e090dce4a40)

20 years agoUse message system to notify when smb.conf is updated.
Jeremy Allison [Tue, 10 Apr 2001 01:44:45 +0000 (01:44 +0000)]
Use message system to notify when smb.conf is updated.
Jeremy.
(This used to be commit ae9eda5c3c3bbfc8ec795b43ab18dc492e5fdcf6)

20 years agolooking towards abstracting the passdb and uidmapping interfaces.
Gerald Carter [Mon, 9 Apr 2001 22:11:37 +0000 (22:11 +0000)]
looking towards abstracting the passdb and uidmapping interfaces.
This is more of a note to myself.  In not used anywhere yet.
(This used to be commit 442605c6bc81dd115f4df5cc20df3f61601c6013)

20 years agoFixup warnings about extra ';' from SGI compiler.
Jeremy Allison [Mon, 9 Apr 2001 21:03:48 +0000 (21:03 +0000)]
Fixup warnings about extra ';' from SGI compiler.
Jeremy.
(This used to be commit 7ee448d83263714676bd250ecc3805b08198e916)

20 years agoRemoved "read only" arg as it isn't useful.
Jeremy Allison [Mon, 9 Apr 2001 20:12:53 +0000 (20:12 +0000)]
Removed "read only" arg as it isn't useful.
Jeremy.
(This used to be commit 6b75d79c4bcfb8333aaf1ed61cf8bd022e498f75)

20 years agoTidy up return codes for server manager.
Jeremy Allison [Mon, 9 Apr 2001 18:03:02 +0000 (18:03 +0000)]
Tidy up return codes for server manager.
Jeremy.
(This used to be commit b4cbdcb644066e132d5c806ae4f45d6a05276beb)

20 years agoGet/Set of SD's on shares now works. Correctly ensure scripts exist before
Jeremy Allison [Mon, 9 Apr 2001 17:10:06 +0000 (17:10 +0000)]
Get/Set of SD's on shares now works. Correctly ensure scripts exist before
calling.
Jeremy.
(This used to be commit aae44ee41f2f133524e37f72b46b63ce6ddb192b)

20 years agoSet SD's for share. Added level 1501. Map GENERIC file bits to specific bits.
Jeremy Allison [Mon, 9 Apr 2001 08:00:19 +0000 (08:00 +0000)]
Set SD's for share. Added level 1501. Map GENERIC file bits to specific bits.
Jeremy.
(This used to be commit 04976c32f319531e16d890797b45a76dab64f370)

20 years agoEnsure Everyone/All access is mapped correctly to file generic perms to allow
Jeremy Allison [Mon, 9 Apr 2001 07:03:28 +0000 (07:03 +0000)]
Ensure Everyone/All access is mapped correctly to file generic perms to allow
anonymous IPC access.
Jeremy.
(This used to be commit 2f34e144c53d6be911de96298c55c34d08c4733f)

20 years agoAdded set/get SD's on shares. Check before tcon.
Jeremy Allison [Mon, 9 Apr 2001 06:36:38 +0000 (06:36 +0000)]
Added set/get SD's on shares. Check before tcon.
Jeremy.
(This used to be commit 036b1a8b09fe6a7cca83d631624145574acad7f2)

20 years agoHEAD specific slprintf paranoia fixes.
Jeremy Allison [Sun, 8 Apr 2001 20:31:39 +0000 (20:31 +0000)]
HEAD specific slprintf paranoia fixes.
Jeremy.
(This used to be commit 61723c18f96a7b38cab0fcf545da7fb3640c5f7b)

20 years agoGot "medieval on our ass" about adding the -1 to slprintf.
Jeremy Allison [Sun, 8 Apr 2001 20:22:39 +0000 (20:22 +0000)]
Got "medieval on our ass" about adding the -1 to slprintf.
Jeremy.
(This used to be commit 94747b4639ed9b19f7d0fb896e43aa392a84989a)

20 years agoAdded per-share security tdb. Tidied up many slprintfs (need -1 on length).
Jeremy Allison [Sun, 8 Apr 2001 20:01:51 +0000 (20:01 +0000)]
Added per-share security tdb. Tidied up many slprintfs (need -1 on length).
Jeremy.
(This used to be commit d786191bc116c17a3f53a1c272d969942b7e5d25)

20 years agoFixed up the "add" command - although not SD's yet. Now for the SD db and
Jeremy Allison [Sat, 7 Apr 2001 18:46:47 +0000 (18:46 +0000)]
Fixed up the "add" command - although not SD's yet. Now for the SD db and
the "change" command.
Jeremy.
(This used to be commit bdec63bedbeabb9d74d68a7f03254acc291df76b)

20 years agoAdded 3 params to manipulate shares. "add share command/change share command/
Jeremy Allison [Sat, 7 Apr 2001 00:36:38 +0000 (00:36 +0000)]
Added 3 params to manipulate shares. "add share command/change share command/
delete share command". Implemented "delete" - more work to come on add and
change.
Jeremy.
(This used to be commit 2e6b1759e14456421066ee131af70a495f862f2b)

20 years agoFix from Ed Boraas for not core dumping when out of connection structs.
Jeremy Allison [Fri, 6 Apr 2001 20:32:36 +0000 (20:32 +0000)]
Fix from Ed Boraas for not core dumping when out of connection structs.
Jeremy.
(This used to be commit f50ea32dd0deb07c626c211caedd86dc1ccd5427)

20 years agokeep cflags from being duplicated if defined in environment
Herb Lewis [Fri, 6 Apr 2001 18:37:55 +0000 (18:37 +0000)]
keep cflags from being duplicated if defined in environment
(This used to be commit 2097298565b367157a3bc0c1178f17b1a6bbdd86)

20 years agoImplemented stub function for NET_SHARE_DELETE. Now to implement the real
Jeremy Allison [Fri, 6 Apr 2001 18:25:17 +0000 (18:25 +0000)]
Implemented stub function for NET_SHARE_DELETE. Now to implement the real
internals to support server manager.
Jeremy
(This used to be commit 3512ba1f655d5588db87f1afa1d12f599ad7b74a)

20 years agoAdded stub function for NET_SHARE_ADD. Once this is implemented to call a hook
Jeremy Allison [Fri, 6 Apr 2001 17:41:47 +0000 (17:41 +0000)]
Added stub function for NET_SHARE_ADD. Once this is implemented to call a hook
function (same for NET_SHARE_DELETE and NET_SHARE_SET) we will be able to manage
the shares section in smb.conf via NT server manager........
This should enhance the friendliness of Samba in NT-only shops by an order of
magnitude.
Jeremy.
(This used to be commit a2cd5f2ba11164a17622b96374ab43070f9ed691)

20 years agoIf we can't open the username map file, at least print the strerror.
Jeremy Allison [Fri, 6 Apr 2001 17:13:16 +0000 (17:13 +0000)]
If we can't open the username map file, at least print the strerror.
Jeremy.
(This used to be commit abf436153a476b7c5a7bff31f1e657b8f53b9dee)

20 years agoNT sucks ! :-). We have to prefix the UNIX path with a C: in order to pass the
Jeremy Allison [Fri, 6 Apr 2001 02:12:07 +0000 (02:12 +0000)]
NT sucks ! :-). We have to prefix the UNIX path with a C: in order to pass the
server manager tests :-). Ensure we don't set a return level on set as
server manager barfs....
Jeremy.
(This used to be commit cb66e78c181878809e367f4f03f3b4c31cb4b8e1)

20 years agoWe can now use server manager to look at Samba shares. NT still expects a ":"
Jeremy Allison [Fri, 6 Apr 2001 01:39:12 +0000 (01:39 +0000)]
We can now use server manager to look at Samba shares. NT still expects a ":"
in the path though.... I'm looking into it.
Jeremy.
(This used to be commit a152c2c59a9a8972a3c73287e26e4de2f49c2d65)

20 years agoSetup syslog correctly in swat. Patch from Andrew Bartlett.
Jeremy Allison [Thu, 5 Apr 2001 21:31:12 +0000 (21:31 +0000)]
Setup syslog correctly in swat. Patch from Andrew Bartlett.
Jeremy.
(This used to be commit ffd9bf192273370c1ebf6f1a2d5ebe8d8c434133)

20 years agoFix from Michael Davidson <md@sco.COM> to merge Solaris and UnixWare ACLs.
Jeremy Allison [Thu, 5 Apr 2001 20:52:02 +0000 (20:52 +0000)]
Fix from Michael Davidson <md@sco.COM> to merge Solaris and UnixWare ACLs.
Jeremy.
(This used to be commit ffa800e980bfed3d82ec7b0a037085c4558f8f0f)

20 years agoFix from "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota code
Jeremy Allison [Thu, 5 Apr 2001 20:46:15 +0000 (20:46 +0000)]
Fix from  "Romeril, Alan" <a.romeril@ic.ac.uk> to get his NFS quota code
to work on Solaris 2.6.
Jeremy.
(This used to be commit bd2fe239db24b8b3fa6a906542af2e238f435331)

20 years agoTidy up tmp file handling.
Jeremy Allison [Thu, 5 Apr 2001 19:17:54 +0000 (19:17 +0000)]
Tidy up tmp file handling.
Jeremy.
(This used to be commit 1751a6316af91d5d2e31c3a7e8de2841aae033c7)

20 years agoI know we're supposed to be feature frozen, but I couldn't resist this... :-).
Jeremy Allison [Wed, 4 Apr 2001 23:42:17 +0000 (23:42 +0000)]
I know we're supposed to be feature frozen, but I couldn't resist this... :-).
I worked out and added the per-share get/set RPCs for security descriptors.
Currently this code returns Everyone, full access on get and permission denied
on set, but backending this with a tdb and checking it on tconX (to give full NT
semantics for security on shares) is now an excersise for the reader... :-).
Jeremy.
(This used to be commit 3bfd155ba78798c50588904d4ea3389f50f8abb6)

20 years agoFix for broken RelientUNIX.
Jeremy Allison [Wed, 4 Apr 2001 17:20:57 +0000 (17:20 +0000)]
Fix for broken RelientUNIX.
Jeremy.
(This used to be commit 6808ec0d471d8b436506bbd7b9db67c28832be76)

20 years agoMissed forms update - my CVS mistake.
Jeremy Allison [Tue, 3 Apr 2001 23:09:04 +0000 (23:09 +0000)]
Missed forms update - my CVS mistake.
Jeremy.
(This used to be commit 06dee898607ff2bf194d53fb55ad6d82e8f305e8)

20 years agotest commit for jeremy
Andrew Tridgell [Tue, 3 Apr 2001 22:52:38 +0000 (22:52 +0000)]
test commit for jeremy
(This used to be commit d747ab8ab37ca20635f99a9dff64a635461852a6)

20 years agoSync up with new NT forms code.
Jeremy Allison [Tue, 3 Apr 2001 22:41:31 +0000 (22:41 +0000)]
Sync up with new NT forms code.
Jeremy.
(This used to be commit 63ce316d870be0cf61ae669c955479ec175fdaef)

20 years agoAdded XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.
Jeremy Allison [Tue, 3 Apr 2001 00:40:01 +0000 (00:40 +0000)]
Added XFS ACLs on Linux. Code from John Trostel <jtrostel@connex.com>.
Jeremy.
(This used to be commit 0865366f6b1070a8db3d8421c37c8072b36b96e3)

20 years agoIRIX ACLs from Herb.
Jeremy Allison [Mon, 2 Apr 2001 23:05:25 +0000 (23:05 +0000)]
IRIX ACLs from Herb.
Jeremy.
(This used to be commit 2f2365e93833e5f08dc14ab0022dd9f6f0d028ad)

20 years agoinclude/ntdomain.h:
Jeremy Allison [Mon, 2 Apr 2001 22:27:40 +0000 (22:27 +0000)]
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)

20 years agoIntegrated solaris nfs quota code from Alan Romeril <a.romeril@ic.ac.uk>
Jeremy Allison [Sun, 1 Apr 2001 19:00:43 +0000 (19:00 +0000)]
Integrated solaris nfs quota code from Alan Romeril <a.romeril@ic.ac.uk>
Jeremy
(This used to be commit 181d41572ceb17dc765d3c0f1a05934e35f56a61)

20 years agoconfigure configure.in include/config.h.in lib/replace.c: Added test and replacement
Jeremy Allison [Sat, 31 Mar 2001 19:06:45 +0000 (19:06 +0000)]
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)

20 years agostarted converting some of the only-ascii code to use srvstr_*
Andrew Tridgell [Sat, 31 Mar 2001 13:48:24 +0000 (13:48 +0000)]
started converting some of the only-ascii code to use srvstr_*

added srvstr_push_ascii() and srvstr_pull_ascii() as convenience
routines to replace the current usage of strncpy() like fns
for packet pull/push. We need to do this in *lots* of places
in Samba in order to get our codepage handling right
(This used to be commit 8b0e3679a6dc479c0e3177707dff386559779b69)

20 years agoutils/torture.c: Added one more delete on close test.
Jeremy Allison [Fri, 30 Mar 2001 21:53:33 +0000 (21:53 +0000)]
utils/torture.c: Added one more delete on close test.
smbd/notify_kernel.c: This code was wrong I believe. It was structured to only
return a changenotify event on being called from timeout processing (t != 0).
The kernel changenotify events should fire on *asynchronous* processing (EINTR
return from select caused by the realtime signal delivery) with t == 0.
Reported by Juergen Hasch (Hasch@t-online.de).
ANDREW PLEASE CHECK THIS !
Currently the hash style changenotify is done on async processing as well
as timeout processing. As this is expensive we may want to revisit doing this
and maybe set it to fire only on timeout processing.
Jeremy.
(This used to be commit f952380c5d0cfbbec1e7de98b712952f302cddfd)

20 years agoFixed extern ref typo for file generic perms. 2am coding strikes again :-).
Jeremy Allison [Fri, 30 Mar 2001 18:07:43 +0000 (18:07 +0000)]
Fixed extern ref typo for file generic perms. 2am coding strikes again :-).
Jeremy.
(This used to be commit fe38692643ad7c163c30d9c031a8bd3dec81ffee)

20 years agoThis is a big, rather ugly patch. Whilst investigating the files not truncated
Jeremy Allison [Fri, 30 Mar 2001 08:57:24 +0000 (08:57 +0000)]
This is a big, rather ugly patch. Whilst investigating the files not truncated
when copying to a full disk problem, I discovered that we were not allowing
the delete on close flag to be set properly, this led to other things, and
after investigation of the proper delete on close semantics and their relationship
to the file_share_delete flag I discovered there were some cases where we
weren't doing the deny modes properly. And this after only 5 years working
on them..... :-) :-).
So here's the latest attempt. I realised the delete on close flag needs to
be set across all smbds with a dev/ino pair open - in addition, the delete
on close flag, allow share delete and delete access requested all need to
be stored in the share mode tdb.
The "delete_on_close" entry in the fsp struct is now redundant and should
really be removed. This may also mean we can get rid of the "iterate_fsp"
calls that I didn't like adding in the first place. Whilst doing this patch,
I also discovered we needed to do the se_map_generic() call for file opens
and POSIX ACL mapping, so I added that also.
This code, although ugly, now passes the deny mode torture tests plus the
delete on close tests I added. I do need to add one more multiple connection
delete on close test to make sure I got the semantics exactly right, plus we
should also (as Andrew suggested) move to random testing here.

The good news is that NT should now correctly delete the file on disk
full error when copying to a disk :-).

Jeremy.
(This used to be commit 51987684bd231c744da2e5f3705fd236d5616173)

20 years agoAdded one more test - just to make sure flag can be unset.
Jeremy Allison [Fri, 30 Mar 2001 06:31:22 +0000 (06:31 +0000)]
Added one more test - just to make sure flag can be unset.
Jeremy.
(This used to be commit 54960b9c8d6be6646a0c0e8ef9ee6c61a4b69cf8)

20 years agoExpanded delete on close test to 6 cases. I now understand the semantics of
Jeremy Allison [Fri, 30 Mar 2001 06:22:14 +0000 (06:22 +0000)]
Expanded delete on close test to 6 cases. I now understand the semantics of
this and the FILE_SHARE_DELETE flag exactly. The bad news is it means our
share mode handling is broken (again :-).
Jeremy.
(This used to be commit a55ed1a91d91beafb2f199d1da530169715dbe0e)

20 years agoChanged to using GENERIC_XX constants instead of hex values to make
Jeremy Allison [Fri, 30 Mar 2001 02:48:06 +0000 (02:48 +0000)]
Changed to using GENERIC_XX constants instead of hex values to make
delete test explicit.
Jeremy.
(This used to be commit cb5963af0ecabab928aafacd27714e337b9bb37e)

20 years agoAdded delete on close test that has allowed me to determine how w2k
Jeremy Allison [Fri, 30 Mar 2001 00:35:47 +0000 (00:35 +0000)]
Added delete on close test that has allowed me to determine how w2k
behaves in this situation.
Jeremy.
(This used to be commit b0266fe0a8c707cb7e818269dc7fe52da709fdab)

20 years agoAdded cli_nt_delete_on_close() call to allow flag to be set for torture tests.
Jeremy Allison [Thu, 29 Mar 2001 02:58:47 +0000 (02:58 +0000)]
Added cli_nt_delete_on_close() call to allow flag to be set for torture tests.
Jeremy.
(This used to be commit 6f7d9e29e4d3a17254ff0ae20c0da63eacded7fe)

20 years agoAdded cli_nt_create_full() as a way to get at all the ntcreate parameters.
Jeremy Allison [Thu, 29 Mar 2001 00:58:52 +0000 (00:58 +0000)]
Added cli_nt_create_full() as a way to get at all the ntcreate parameters.
Used in smbtorture mods. Re-cast cli_nt_create() as a call to cli_nt_create_full().
Jeremy.
(This used to be commit f602fa1205e99541e825ccae8502c35cd0e7ccfc)

20 years agoInsure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.
Jeremy Allison [Wed, 28 Mar 2001 23:20:46 +0000 (23:20 +0000)]
Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.
Jeremy.
(This used to be commit 3f9cf2e07bb6d429858e47ab6989ea8cf30d0217)

20 years agoFixed typo bug spotted by Jim Vopni jimv@metrics.com. Caused no status to
Jeremy Allison [Wed, 28 Mar 2001 18:12:49 +0000 (18:12 +0000)]
Fixed typo bug spotted by Jim Vopni jimv@metrics.com. Caused no status to
be returned.
Jeremy.
CVS ----------------------------------------------------------------------
(This used to be commit 5b7f4cf271ad449277c0ea7a825ed4d50205d729)

20 years agorename of 16 new_smb_io functions to smb_io_* for consistency sake
Gerald Carter [Wed, 28 Mar 2001 16:08:00 +0000 (16:08 +0000)]
rename of 16 new_smb_io functions to smb_io_* for consistency sake
(merge from 2.2)
(This used to be commit ea963a648b889da9e47661c61c7fafe13b277e75)

20 years agoMore memory leaks fixed courtesy of Insure ...
Richard Sharpe [Wed, 28 Mar 2001 14:45:57 +0000 (14:45 +0000)]
More memory leaks fixed courtesy of Insure ...
(This used to be commit 4fc385ca6830cb2ac6198501966088fbed27330e)

20 years agoChanged usage message for query_groupmem and query_usergroups as they don't
Tim Potter [Wed, 28 Mar 2001 05:01:54 +0000 (05:01 +0000)]
Changed usage message for query_groupmem and query_usergroups as they don't
convert names to rids yet.
(This used to be commit cea13dff759dfb7efb5d2a248dd77905e16b1605)

20 years agoFixed the problem Gerald reported. Unfortunately we need to go back to
Jeremy Allison [Wed, 28 Mar 2001 01:33:57 +0000 (01:33 +0000)]
Fixed the problem Gerald reported. Unfortunately we need to go back to
reporting imaginary "default" inheritable ACLs on directories, otherwise,
when you add an entry and click on apply without noticing there's no
default entry associated with it, it applies a null acl on the files
within the directory (hey, that's what you told NT you wanted, right ! :-).
Also ensure that minimum permissions for a directory are r-x for owner,
not just r--.
Jeremy.
(This used to be commit 4fa8cf68c3921f93a27d290d6dd1ed4423dfcf1c)

20 years agomake proto
Gerald Carter [Tue, 27 Mar 2001 18:19:21 +0000 (18:19 +0000)]
make proto
(This used to be commit 0799b272a07cc288be29e0f606b80219e3a029a3)

20 years agomerge from 2.2.
Gerald Carter [Tue, 27 Mar 2001 18:19:01 +0000 (18:19 +0000)]
merge from 2.2.
(This used to be commit 817258f1174d27d74e8b21ffb5f1384db2238007)

20 years agoOne small Insure fix for a memory leak. More fixes to come perhaps ...
Richard Sharpe [Tue, 27 Mar 2001 12:13:59 +0000 (12:13 +0000)]
One small Insure fix for a memory leak. More fixes to come perhaps ...

Also fixed an error return for smbc_rmdir so that we can distinguish
between EACCES and ENOTEMPTY
(This used to be commit f204901fcc11eb3299cc6c7f3793fc3c7bd6bc57)

20 years agoRemoved NFS quotas code for Solaris as Alan wants to re-write it.
Jeremy Allison [Tue, 27 Mar 2001 08:08:04 +0000 (08:08 +0000)]
Removed NFS quotas code for Solaris as Alan wants to re-write it.
Jeremy.
(This used to be commit 13c9823eb19baa4b1262ad0fd416d9ecbc92b160)

20 years agoPatch from itegem <J.P.M.v.Itegem@ele.tue.nl> to handle LPRng v3.16 and above.
Jeremy Allison [Tue, 27 Mar 2001 03:16:05 +0000 (03:16 +0000)]
Patch from itegem <J.P.M.v.Itegem@ele.tue.nl> to handle LPRng v3.16 and above.
Jeremy
(This used to be commit 40bccf26dbdb88c639d272d511bfce510a43de2a)

20 years agoAdded NFS quota support for Solaris 5.x from Alan Romeril <a.romeril@ic.ac.uk>.
Jeremy Allison [Tue, 27 Mar 2001 02:43:34 +0000 (02:43 +0000)]
Added NFS quota support for Solaris 5.x from Alan Romeril <a.romeril@ic.ac.uk>.
sun1.samba.org is down at the moment so I can't test the compile on this. I'm
sure Solaris people using quotas will scream if I've meesed anything up :-).
Jeremy.
(This used to be commit 3d2c59bfe0bc30d8cecf0af81b74d4232b09bdb2)

20 years agostandards.h only exists on IRIX 6.x and above (Herb please check !).
Jeremy Allison [Tue, 27 Mar 2001 01:41:50 +0000 (01:41 +0000)]
standards.h only exists on IRIX 6.x and above (Herb please check !).
Jeremy.
(This used to be commit 80ce12d95396bac53b2303955e5081d9632cbf55)

20 years agoPatch from David Gibson <dgibson@linuxcare.com> to reduce "silent abort"
Jeremy Allison [Tue, 27 Mar 2001 01:19:54 +0000 (01:19 +0000)]
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)

20 years agoFix for ENOSPC from DCB.
Jeremy Allison [Tue, 27 Mar 2001 00:28:01 +0000 (00:28 +0000)]
Fix for ENOSPC from DCB.
Jeremy.
(This used to be commit 55fcd71eecf4477c56fc4a01bda6d452d3b0caa4)

20 years agoBail out early if null passwords and lp_null_passwords not set.
Jeremy Allison [Tue, 27 Mar 2001 00:24:40 +0000 (00:24 +0000)]
Bail out early if null passwords and lp_null_passwords not set.
Jeremy.
(This used to be commit 7c718fc85e3dbfaf0195e352d06a8c682a6036fc)

20 years agomerge from 2.2
Gerald Carter [Tue, 27 Mar 2001 00:03:49 +0000 (00:03 +0000)]
merge from 2.2
(This used to be commit 3a03065b43d073205e421434bc32082c0f9f64da)

20 years agoPatch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip on
Jeremy Allison [Mon, 26 Mar 2001 23:21:29 +0000 (23:21 +0000)]
Patch from Massimo Sivilotti <mass@tanner.com> to log remote machine/ip on
connection fail.
Jeremy.
(This used to be commit 07cee46d1de1caaf6f9f1b6139dd21bcc5d67e8e)

20 years agoFix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and smb.conf
Jeremy Allison [Mon, 26 Mar 2001 23:13:02 +0000 (23:13 +0000)]
Fix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and smb.conf
file in utf8.
Jeremy.
(This used to be commit 42052d6079479452aa43eb37ad3d679d28337779)

20 years agoFix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.
Jeremy Allison [Mon, 26 Mar 2001 22:34:25 +0000 (22:34 +0000)]
Fix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.
Jeremy.
(This used to be commit 0c9a92a0557b2595e520cbaf2feaa587f9e7502d)

20 years agoMissed a cli_set_port on message code connect.
Jeremy Allison [Mon, 26 Mar 2001 22:28:12 +0000 (22:28 +0000)]
Missed a cli_set_port on message code connect.
Jeremy.
(This used to be commit 799e043ae3a4478b9e42604a3d1c88abbb74f047)

20 years agoPatch from Sean.Batt@anu.edu.au to ensure error reporting is done before
Jeremy Allison [Mon, 26 Mar 2001 22:20:43 +0000 (22:20 +0000)]
Patch from Sean.Batt@anu.edu.au to ensure error reporting is done before
any code that could modify errno is called.
Jeremy.
(This used to be commit 109a174de9e23ccc89ae17d6b5b425b5947c8565)

20 years agoFix from Dave Collier Brown to log a debug at level zero on common misconfigure.
Jeremy Allison [Mon, 26 Mar 2001 22:15:40 +0000 (22:15 +0000)]
Fix from Dave Collier Brown to log a debug at level zero on common misconfigure.
Jeremy.
(This used to be commit 4a3d2a13d3b0acab69c27b5b6522575b949eb5e6)

20 years agoPatch to make automount lookup fallback to get home directory from getpwnam.
Jeremy Allison [Mon, 26 Mar 2001 21:52:43 +0000 (21:52 +0000)]
Patch to make automount lookup fallback to get home directory from getpwnam.
From Robert Montjoy <Rob_Montjoy@ECECS.UC.EDU>.
Jeremy.
(This used to be commit 1fe60064bddf29fd778918d3f1a7026002029bd7)

20 years agosmbd/posix_acls.c: Saving and restoring errno here is the wrong place. Moved it
Jeremy Allison [Mon, 26 Mar 2001 19:18:06 +0000 (19:18 +0000)]
smbd/posix_acls.c: Saving and restoring errno here is the wrong place. Moved it
to the places where [f]chmod_acl is called instead.
Jeremy.
(This used to be commit 641ada44ae6429761c1fd0dbcafabc69f897fac7)

20 years agoEnsure get/set NT ACL code is redirected through vfs.
Jeremy Allison [Mon, 26 Mar 2001 17:58:05 +0000 (17:58 +0000)]
Ensure get/set NT ACL code is redirected through vfs.
Jeremy.
(This used to be commit d43d907c38008bb02042cb4bc2d899f62bdc115b)

20 years agosmbd/posix_acls.c: Sync up with 2.2 changes - don't return deny ACE's.
Jeremy Allison [Mon, 26 Mar 2001 05:43:04 +0000 (05:43 +0000)]
smbd/posix_acls.c: Sync up with 2.2 changes - don't return deny ACE's.
smbd/vfs.c: Don't call [f]chmod_acl if no acl support.
Jeremy.
(This used to be commit 83f52394e688b4be3ac4cef67d8980a5b8ed3192)

20 years agomerge from 2.2
Gerald Carter [Sun, 25 Mar 2001 06:05:57 +0000 (06:05 +0000)]
merge from 2.2
(This used to be commit b6227751f117ad507838db0cf0032093f6251646)

20 years agoAdded Gerald's fixes.
Jeremy Allison [Fri, 23 Mar 2001 21:54:30 +0000 (21:54 +0000)]
Added Gerald's fixes.
Jeremy.
(This used to be commit be825b07464f54d717333318a08154cff632f706)

20 years agoa much simpler talloc() implementation. This version has the following
Andrew Tridgell [Fri, 23 Mar 2001 21:37:30 +0000 (21:37 +0000)]
a much simpler talloc() implementation. This version has the following
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)

20 years agoMore unused variables.
Jeremy Allison [Fri, 23 Mar 2001 20:41:22 +0000 (20:41 +0000)]
More unused variables.
Jeremy.
(This used to be commit 38b19fad2851a65268b31c7e0240ed36a8407be4)

20 years agoFix insure-found parameter size missmatch.
Jeremy Allison [Fri, 23 Mar 2001 19:01:27 +0000 (19:01 +0000)]
Fix insure-found parameter size missmatch.
Jeremy.
(This used to be commit 2f658691e47406f38bec2fc20951f82043fbf894)

20 years agoMade the fixes Andrew suggested to asci string code to use srvstr_push.
Jeremy Allison [Fri, 23 Mar 2001 18:14:22 +0000 (18:14 +0000)]
Made the fixes Andrew suggested to asci string code to use srvstr_push.
Jeremy.
(This used to be commit 1391aa6a6fbe8391a4421f5770da40556f011bb8)

20 years agoTwo OS/2 printer fixes from Jim McDonough @ IBM.
Jeremy Allison [Fri, 23 Mar 2001 03:12:58 +0000 (03:12 +0000)]
Two OS/2 printer fixes from Jim McDonough @ IBM.
First one adds a new info level into the lanman printing and an ioctl to the trans2 code.
    Andrew - this uses ASCII only. It looks ok to me but please check !
Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped.
Jeremy.
(This used to be commit da79b519e0b6b4317d7fb5260d74e0e74a7e0b46)

20 years agogroupdb/mapping.c:
Jeremy Allison [Fri, 23 Mar 2001 02:14:08 +0000 (02:14 +0000)]
groupdb/mapping.c:
include/proto.h: Fix missing (void) in proto.
rpc_server/srv_samr_nt.c: Fix user private group problem by filtering out groups that
clash with users.
smbd/posix_acls.c: Ensure default ACE's are sensible.
utils/pdbedit.c: Fix from Simo Sorce.
Jeremy.
(This used to be commit 29414fe0d6665642d9b5f88a35e712426376c47f)

20 years agocan delete mapping from command line now.
Jean-François Micouleau [Fri, 23 Mar 2001 01:19:21 +0000 (01:19 +0000)]
can delete mapping from command line now.

J.F.
(This used to be commit 287d9fb06899fe7721fdfcd5ccaa566935d31c4d)

20 years agoSync up with 2.2 ACL code.
Jeremy Allison [Fri, 23 Mar 2001 00:54:55 +0000 (00:54 +0000)]
Sync up with 2.2 ACL code.
Jeremy.
(This used to be commit 5b9a88c2d0da3479f91131f66ff741e88f9760ee)

20 years agofirst pass of the new group mapping code
Jean-François Micouleau [Fri, 23 Mar 2001 00:50:31 +0000 (00:50 +0000)]
first pass of the new group mapping code

J.F.
(This used to be commit 7154deb026d53cb0cd503562174c3332a372be63)

20 years agoUpdated broken links.
Tim Potter [Thu, 22 Mar 2001 22:39:37 +0000 (22:39 +0000)]
Updated broken links.
(This used to be commit c9111dc1847968dbcb2d46ff62af53a61bc75e21)

20 years agoNew POSIX ACL mapping code. Works with UNIX permissions, now for testing
Jeremy Allison [Thu, 22 Mar 2001 01:26:37 +0000 (01:26 +0000)]
New POSIX ACL mapping code. Works with UNIX permissions, now for testing
with real ACLs...
Jeremy.
(This used to be commit 852b9e15ac245a593460cfff3f629d0333372e41)

20 years agoFix memory leak when doing DLIST_REMOVE(head,head).
Jeremy Allison [Wed, 21 Mar 2001 23:50:26 +0000 (23:50 +0000)]
Fix memory leak when doing DLIST_REMOVE(head,head).
Jeremy.
(This used to be commit 4fd8afaf573054eaa838398f62918757659c2c21)

20 years agoadded -E option (for exit on errors)
Andrew Tridgell [Wed, 21 Mar 2001 06:44:49 +0000 (06:44 +0000)]
added -E option (for exit on errors)
forced exclusion of filenames containing only '.' as NT rejects those
(This used to be commit a83ff172f271aa74148016f0e2ac62c868c140fb)

20 years agolatest attempt at lanman1 wildcard matching
Andrew Tridgell [Wed, 21 Mar 2001 05:54:09 +0000 (05:54 +0000)]
latest attempt at lanman1 wildcard matching
(This used to be commit 32361fc53e11a71f133a1727c6234a2bf01a5ccf)