1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-19 10:03:58 +03:00

14804 Commits

Author SHA1 Message Date
Jeremy Allison
9fda3ecda4 r6261: Tidyup message str printf. Ensure tvs struct is zeroed.
Jeremy.
(This used to be commit 6c9f227ef400f32def85268f411691b569d29889)
2007-10-10 10:56:33 -05:00
Jeremy Allison
def41233b4 r6258: Fix found by OS/2 set_ea call. When setting specific info remember to terminate
once we've done that and not "break" into the generic file metadata set code.
Jeremy.
(This used to be commit f1e12be9ed0ca0077bac8e5f32051758e1d84ad7)
2007-10-10 10:56:33 -05:00
Jeremy Allison
046bea52eb r6256: Fix fprintf errors in smbpasswd. Fix for bug #2585 Ulf Härnhammar <metaur@telia.com>
Jeremy.
(This used to be commit 3dfa6c40fc726ddf38d4cfc6e0604ceed0035d18)
2007-10-10 10:56:32 -05:00
Steve French
f168ebafb3 r6255: Initial checkin of cifs umount utility
(This used to be commit 8f7c36a6c442ce5030be546b761f807fd2fa8087)
2007-10-10 10:56:32 -05:00
Jeremy Allison
8abd17fe1c r6253: Add FreeBSD EA API support. Bug #2576 - patch donated by Timur Bakeyev <timur@com.bat.ru>
Jeremy.
(This used to be commit 059a2e30c94f7bbcf01c1f4c5539f0b0f5ab0e09)
2007-10-10 10:56:32 -05:00
Jeremy Allison
f0fea42a75 r6252: Re-order position of become_root() to allow directory to be
read first.
Jeremy.
(This used to be commit 9fa32282ebe78c3ecd433e8ece600881774560b7)
2007-10-10 10:56:32 -05:00
Jeremy Allison
43710a45e8 r6249: Get the comparison the right way around...
Jeremy.
(This used to be commit 1d542eee571b80259568d49bd5dc2eb14fd80d01)
2007-10-10 10:56:32 -05:00
Gerald Carter
14ce1ed40c r6243: Yes. I *will* hate myself in the morning for this one.
I need to gather some more information to know if these
extra context id's may be used later.  But for now,
pw changes via CTL+ALT+DEL from win2k3sp1 clients work.
(This used to be commit e7189a4e4b2211ce396944559d38056fa5b57f65)
2007-10-10 10:56:32 -05:00
Gerald Carter
1253a174f3 r6242: after talking to jeremy, we can actually consolidate
the 2 BOOL flags in dfs_redirect() down to one since
they both are used in essentially the same context
(from what we can tell).

Tested Win98SE, WinXP sp 1 & 2, Win2k3 sp1, and WIn2k Sp4.
All dfs operations still seem to work.
(This used to be commit 59ffacf59c98f2f8277d76ec22712e438fd40618)
2007-10-10 10:56:31 -05:00
Jeremy Allison
ecc6933a86 r6240: Fix for bug #2581. Add size limit (in kb) to stat cache.
Jeremy.
(This used to be commit 836b73d0018c3137b7a924b6345e69ae5d23431d)
2007-10-10 10:56:31 -05:00
Gerald Carter
b751f95a25 r6237: fix my breakage of WinXP sp2 msdfs support.
We did need the special case for RESOLVE_DFSPATH
in the findfirst() code.

Jeremy, please verify I haven't broken the allow_wcard
code you added to resolve_dfs_path()
(This used to be commit 29983398e2f7f1dc609d4d981e20f594918243bb)
2007-10-10 10:56:31 -05:00
Jeremy Allison
e79e98a9f6 r6235: Partial fix for bugid #2581. Ensure if realloc fails on an internal
tdb we fail gracefully.
Jeremy.
(This used to be commit 28772dfca1f9e7afd01f7ea522cb2e697c318e22)
2007-10-10 10:56:31 -05:00
Jeremy Allison
d761233aba r6234: Fix for possible root squash nfs bugs from psz@maths.usyd.edu.au
Jeremy.
(This used to be commit dbf021a2e04e74dd7f072c927a34043fd8c3ae30)
2007-10-10 10:56:31 -05:00
Gerald Carter
466a825ce7 r6232: more cleanups; remove BUFFER3; rename BUFFER4 -> RPC_DATA_BLOB; rename REG_CREATE_VALE -> REG_SET_VALUE
(This used to be commit 28d433351cf813c7fb57ebac0e0f4973c85f73e8)
2007-10-10 10:56:30 -05:00
Gerald Carter
dc30062d71 r6231: Herb, I think this checkin was a mistake. Are you sure this is
what you meant to change?

Fix build breakage....
(This used to be commit b3643b732ba35af6e329dbda82bb05da81e5da64)
2007-10-10 10:56:30 -05:00
Herb Lewis
be0c01da4c r6230: don't know how this ever worked! the compiler complained we
were comparing an integer to a pointer and it was right.
(This used to be commit b6117dd72de1f2a8e158d1a5f2b2991ef93deb72)
2007-10-10 10:56:30 -05:00
Gerald Carter
b137b7cc47 r6228: remove BUFHDR2 and clean up LsaEnumTrustedDomains()
Tested client and server code.
(This used to be commit efb3ac4c69c72c0fa01c558951fa357893562bce)
2007-10-10 10:56:30 -05:00
Herb Lewis
978ca84860 r6225: get rid of warnings from my compiler about nested externs
(This used to be commit efea76ac71412f8622cd233912309e91b9ea52da)
2007-10-10 10:56:30 -05:00
Gerald Carter
60dd0d0f9c r6221: format cleanup (got tied of looking for related structures)
also remove unused SID_ARRAY structure....
(This used to be commit c8f808b0763f7abcc0d879057f4f17002e65b4e1)
2007-10-10 10:56:29 -05:00
Gerald Carter
7328fceef0 r6220: cleaning up spoolss header; removing unused structures
(This used to be commit c474222e0d4ffc7278a1698bcaa7830e63cfa426)
2007-10-10 10:56:29 -05:00
Gerald Carter
b4c7204129 r6218: * fix a segv in EnumPrinters():rpc_buffer_alloc when the caller does not provide an
RPC_BUFFER in the request

* add initial (but wire untested) support for RegRestoreKey()
(This used to be commit 22855c7aae940cc4082c231a470f612b8fc6fa0d)
2007-10-10 10:56:29 -05:00
Volker Lendecke
78355805ef r6217: After talking to jerry, commit the partial fix for wbinfo -r. This fixes the
expansion of domain local groups in case the netsamlogon_cache is valid. The
non-samlogon-cache side needs more work, as well as the samlogon cache itself.

Volker
(This used to be commit b6352a3c46f8e67503945eeac33e157ecea01bfb)
2007-10-10 10:56:29 -05:00
Volker Lendecke
1c10d5fc30 r6216: Brown paper-bag bug fix for wbinfo --user-sids.... Nobody seems to really use
domain local groups ...

Volker
(This used to be commit ed2d76d663a4388acc26a724cf2cdb5c40763def)
2007-10-10 10:56:29 -05:00
Jeremy Allison
6ef9d08090 r6204: Fix double-free of talloc context.
Jeremy.
(This used to be commit d5c56d25741e148ccae7c91f9b0157498d7ff148)
2007-10-10 10:56:28 -05:00
Jeremy Allison
77fa234ffc r6203: Fix attribute return on creating a directory with nttrans_create.
Fix strange allocation semantics of openX.
Jeremy.
(This used to be commit da5a8b539d39d2765de22c3e55e9f284992ff966)
2007-10-10 10:56:28 -05:00
Jeremy Allison
d318fe4025 r6200: Returned access should contain share mode as well as open mode.
Jeremy.
(This used to be commit 3aa784c07723430b429adc9abab9cc7c1325cb35)
2007-10-10 10:56:28 -05:00
Jeremy Allison
db69f6fae9 r6199: Only do the strange DOS error for openX, not trans2open.
Jeremy.
(This used to be commit 65970dfc5b8f174fe29201789d6ddcf8802ad48c)
2007-10-10 10:56:28 -05:00
Tim Potter
bdae18b799 r6176: Fix a possibly uninitialised variable warning.
(This used to be commit 3cf5ad4e80f95c302a502a78e2ee1b23524625bf)
2007-10-10 10:56:28 -05:00
Tim Potter
219ad7da07 r6175: Fix crash bug and compiler warnings in strchr_m() test. Bugzilla #2565.
(This used to be commit 17d13b57136d1f58c450d4587476304482bbd12a)
2007-10-10 10:56:28 -05:00
Jeremy Allison
1045c78624 r6174: Fixup T2 open call - we were returning 2 bytes short.
Jeremy.
(This used to be commit 0c7de7615bf0edbb36a3afee445db13a71e26d2e)
2007-10-10 10:56:27 -05:00
Jeremy Allison
0557c6cba2 r6172: Tidy up error processing significantly. Remove unix_ERR_XXX global nastyness.
Jeremy.
(This used to be commit d3379fe61bb934082b51a37adac232a96bafcf46)
2007-10-10 10:56:27 -05:00
Steve French
ab8ffa822a r6170: Remove redundant flag that I had just added.
(This used to be commit 981b44e600e2410395d6d02252795623e400d624)
2007-10-10 10:56:27 -05:00
Jeremy Allison
8d2e18ac53 r6169: Fix bug #2563. Infinite loop on non-existant file with findnext.
Jeremy
(This used to be commit 065ab9182dc39557b8c26d3d110abe9963ad9568)
2007-10-10 10:56:26 -05:00
Steve French
dee553bdb1 r6167: Add more defines for POSIX extensions to match the newly added
client implementation
(This used to be commit 8f6dba2cc3f337e990ef3e4b46718a5c1dca65ab)
2007-10-10 10:56:26 -05:00
Günther Deschner
0f535e3e5b r6166: Derell, I'm reverting this part of -r4917 because it modifies the keys
to search in tdbs in a way that is not upgrade-safe and somewhat weird
to use: Users have to modify policies like

        pdbedit -P "maximum password policies (seconds since 1970)"

The value-description should better go into the manpage.

Guenther
(This used to be commit f46c0c12274cd0bf1c24bc2d1d708b2960433195)
2007-10-10 10:56:26 -05:00
Jeremy Allison
1da65dc29e r6163: Well I never, all this time the t2open code was incorrectly decting
oplock requests and no one noticed. Hmmm. Don't think this is a commonly
used codepath :-).
Jeremy.
(This used to be commit 75a0c11de4b7baf693e5c62e690e4bb26554f8e2)
2007-10-10 10:56:26 -05:00
Jeremy Allison
89fffb349f r6160: Ensure allocation size is correctly returned for OpenX. Only set allocation
on create/truncate for nttrans.
Jeremy.
(This used to be commit fb05ac4c03eec21f3f18668610022ebfa6d6bf4a)
2007-10-10 10:56:26 -05:00
Gerald Carter
4066f6e59a r6158: fix some misleading error messages
(This used to be commit 91a8e1ac6debffe457624a625e0f407bdbbbcb15)
2007-10-10 10:56:26 -05:00
Derrell Lipman
523ba5ed32 r6156: Fixes bug #2543. Properly cache anonmous username when reverting to anonymous login, in libsmbclient.
(This used to be commit cf2dcc110824cb3a4ce4e4bf608de25b7cfc2054)
2007-10-10 10:56:25 -05:00
Derrell Lipman
8de11f06df r6155: Fixes bug #1133
Added provision for overloading some global configuration options via the new,
per-user file ~/.smb/smb.conf.append which is read after the global config
file is read (and only if the global config file was read).  This leave the
original, BC behavior of ~/.smb/smb.conf which, if found, is read but causes
the global config file to not be read.

Also fixed a potential seg fault in to lp_dump_one().
(This used to be commit 2c5a6305bd127b1a7e65356c2b3aa5c13cd2bd74)
2007-10-10 10:56:25 -05:00
Gerald Carter
fd52f0eeae r6154: fix winbindd <-> Windows 2003 sp1 issue.
Can't do LsaOpenPolicy() over schannel anymore.
This is an interesting find as it could imply that there are
other changes we haven't seen yet in sp1.

Volker, You might want to look at this for trunk.
(This used to be commit 82e3a9d9b526522376ea967c66c67b02f2c68dd8)
2007-10-10 10:56:25 -05:00
Jeremy Allison
67425afa3e r6152: Correctly check OpenX open modes.
Jeremy.
(This used to be commit 326124a7b366feaca6162f7defae89618b005adc)
2007-10-10 10:56:25 -05:00
Derrell Lipman
9840db418b r6149: Fixes bugs #2498 and 2484.
1. using smbc_getxattr() et al, one may now request all access control
   entities in the ACL without getting all other NT attributes.
2. added the ability to exclude specified attributes from the result set
   provided by smbc_getxattr() et al, when requesting all attributes,
   all NT attributes, or all DOS attributes.
3. eliminated all compiler warnings, including when --enable-developer
   compiler flags are in use.  removed -Wcast-qual flag from list, as that
   is specifically to force warnings in the case of casting away qualifiers.

Note: In the process of eliminating compiler warnings, a few nasties were
      discovered.  In the file libads/sasl.c, PRIVATE kerberos interfaces
      are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED
      kerberos interfaces are being used.  Someone who knows kerberos
      should look at these and determine if there is an alternate method
      of accomplishing the task.
(This used to be commit 994694f7f26da5099f071e1381271a70407f33bb)
2007-10-10 10:56:24 -05:00
Jeremy Allison
b76112f211 r6146: Added OS/2 EA support in trans2_open and trans2_mkdir. Fixed in nttrans_create.
Jeremy.
(This used to be commit 989fcb4c084c63f1e3b114af68ef5bc0a2fbc09e)
2007-10-10 10:56:24 -05:00
Jeremy Allison
b7c6e71b26 r6141: Fix OS/2 EA's for NTcreate. OpenX and mkdir to follow.
Jeremy.
(This used to be commit 106f91ff65acd23a7dda4d0ec89ae41ecb28153e)
2007-10-10 10:56:24 -05:00
Jeremy Allison
f1977014f4 r6138: Refactor length reading out of EA code so we can read length
external to buffer. Needed to add EA code to create calls.
Jeremy.
(This used to be commit 7c4262d6ba48695c2622ea2eba8da6ac889ce543)
2007-10-10 10:56:24 -05:00
Derrell Lipman
934d41d239 r6127: Eliminated all compiler warnings pertaining to mismatched "qualifiers". The
whole of samba comiles warning-free with the default compiler flags.

Temporarily defined -Wall to locate other potential problems.  Found an
unused static function (#ifdefed out rather than deleted, in case it's
needed for something in progress).

There are also a number of uses of undeclared functions, mostly krb5_*.
Files with these problems need to have appropriate header files included,
but they are not fixed in this update.

oplock_linux.c.c has undefined functions capget() and capset(), which need
to have "#undef _POSIX_SOURCE" specified before including <sys/capability.h>,
but that could potentially have other side effects, so that remains uncorrected
as well.

The flag -Wall should be added permanently to CFLAGS, and all warnings then
generated should be eliminated.
(This used to be commit 5b19ede88ed80318e392f8017f4573fbb2ecbe0f)
2007-10-10 10:56:24 -05:00
Derrell Lipman
1635d50a20 r6125: smbc_stat() returned incorrect timestamps IFF it used cli_qpathinfo2() to
retrieve the timestamps (Win2k) and not if it used cli-getatr() to retrieve
the timestamps (Win98).  Timestamps are supposed to be in GMT, and should
not have serverzone deducted from them in cli_qpathinfo2().
(This used to be commit 443d8df94c2937b7d458b7228bdc1d433581558a)
2007-10-10 10:56:23 -05:00
Jeremy Allison
7dcc247164 r6124: Fix for bug #2242 from Tom Lackemann <cessnatomny@yahoo.com> - don't
set SD on an NTtransact create unless we created the file.
Jeremy.
(This used to be commit b42eaf424e34544fae3f0fc473694e61dda2a11c)
2007-10-10 10:56:23 -05:00
Jeremy Allison
5a69d0a82a r6122: Added "hack" fix for broken SMB_INFO_VOLUME level - used by OS/2
I believe. Reported as fixed by Marcel Müller <mueller@maazl.de>.
Jeremy.
(This used to be commit 14eab937a54dd9f02f289d7e2f47c78c834714a3)
2007-10-10 10:56:23 -05:00