1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

17646 Commits

Author SHA1 Message Date
Herb Lewis
978ca84860 r6225: get rid of warnings from my compiler about nested externs
(This used to be commit efea76ac71)
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 c8f808b076)
2007-10-10 10:56:29 -05:00
Gerald Carter
7328fceef0 r6220: cleaning up spoolss header; removing unused structures
(This used to be commit c474222e0d)
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 22855c7aae)
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 b6352a3c46)
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 ed2d76d663)
2007-10-10 10:56:29 -05:00
Jeremy Allison
6ef9d08090 r6204: Fix double-free of talloc context.
Jeremy.
(This used to be commit d5c56d2574)
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 da5a8b539d)
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 3aa784c077)
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 65970dfc5b)
2007-10-10 10:56:28 -05:00
Tim Potter
bdae18b799 r6176: Fix a possibly uninitialised variable warning.
(This used to be commit 3cf5ad4e80)
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 17d13b5713)
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 0c7de7615b)
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 d3379fe61b)
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 981b44e600)
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 065ab9182d)
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 8f6dba2cc3)
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 f46c0c1227)
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 75a0c11de4)
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 fb05ac4c03)
2007-10-10 10:56:26 -05:00
Gerald Carter
4066f6e59a r6158: fix some misleading error messages
(This used to be commit 91a8e1ac6d)
2007-10-10 10:56:26 -05:00
Derrell Lipman
eefc6f0ab4 r6157: 'editorial changes' to example code
(This used to be commit fa0294ddbf)
2007-10-10 10:56:25 -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 cf2dcc1108)
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 2c5a6305bd)
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 82e3a9d9b5)
2007-10-10 10:56:25 -05:00
Jeremy Allison
67425afa3e r6152: Correctly check OpenX open modes.
Jeremy.
(This used to be commit 326124a7b3)
2007-10-10 10:56:25 -05:00
Derrell Lipman
8e6b4b9867 r6151: additional examples/tests for libsmbclient
(This used to be commit a3bd496c92)
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 994694f7f2)
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 989fcb4c08)
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 106f91ff65)
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 7c4262d6ba)
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 5b19ede88e)
2007-10-10 10:56:24 -05:00
Derrell Lipman
7387dab585 r6126: added utility for testing smbc_stat()
(This used to be commit e1df648ea1)
2007-10-10 10:56:23 -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 443d8df94c)
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 b42eaf424e)
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 14eab937a5)
2007-10-10 10:56:23 -05:00
Jeremy Allison
3fb8308072 r6120: Added "volume" command to smbclient that prints out the volume name and
serial number.
Jeremy.
(This used to be commit c69623072e)
2007-10-10 10:56:23 -05:00
Günther Deschner
acd9ef30f3 r6117: Close handles after group-creation as well.
Guenther
(This used to be commit f41f1437e7)
2007-10-10 10:56:23 -05:00
Simo Sorce
b1d8753aed r6116: update debian changelog
(This used to be commit d0e5e48ad3)
2007-10-10 10:56:22 -05:00
Volker Lendecke
be70aa7614 r6110: Close handles on user creation. This allows easy mass creation of users with
rpcclient.

Volker
(This used to be commit 1a56a4fd3e)
2007-10-10 10:56:22 -05:00
Derrell Lipman
fbc611f431 r6108: Added smbsh/smbwrapper for Linux to example/libsmbclient tree; provided more complete libsmbclient testbrowse utility
(This used to be commit 15736b97c8)
2007-10-10 10:56:22 -05:00
Jeremy Allison
fa787af520 r6106: Fix bug #2551. It turns out that the incoming flags2 flag FLAGS2_LONG_PATH_COMPONENTS
determines if a reply is uppercased on a SMBsearch request, not the protocol level.
This could clear up quite a few hacks going forward I think.
Jeremy.
(This used to be commit 8c64cd368f)
2007-10-10 10:56:22 -05:00
Jeremy Allison
717845f109 r6104: Update dos filetimes to default yes for Office 2000.
Jeremy.
(This used to be commit d1ff66f6cd)
2007-10-10 10:56:22 -05:00
Steve French
5d64af716d r6103: Update list of mount options for mount.cifs
(This used to be commit 6efd6225fa)
2007-10-10 10:56:21 -05:00
Derrell Lipman
0411d1a735 r6102: add support for opening a file for write with O_APPEND in libsmbclient
(This used to be commit 542922cb2e)
2007-10-10 10:56:21 -05:00
Jeremy Allison
202c7b4571 r6092: This much const causes the compiler on Fedora Core 2
to throw up.
Jeremy.
(This used to be commit 051f0ed807)
2007-10-10 10:56:21 -05:00
Jeremy Allison
e0c51ee41f r6090: Patch to fix sys_select so it can't drop signals if another fd
is ready to read. Patch from Mark Weaver <mark-clist@npsl.co.uk>.
The only question is, how did we miss this for so long..... :-).
Jeremy.
(This used to be commit fb4052ce3a)
2007-10-10 10:56:21 -05:00
Jeremy Allison
780b1eedab r6082: Fix for bugid #2541. Fixes from Guenter Kukkukk <guenter.kukkukk@kukkukk.com>
Jeremy.
(This used to be commit 057e4bf641)
2007-10-10 10:56:21 -05:00
Volker Lendecke
e84ead0cfd r6080: Port some of the non-critical changes from HEAD to 3_0. The main one is the
change in pdb_enum_alias_memberships to match samr.idl a bit closer.

Volker
(This used to be commit 3a67865169)
2007-10-10 10:56:20 -05:00
Gerald Carter
0aa89db947 r6071: * clean up UNISTR2_ARRAY ( really just an array of UNISTR4 + count )
* add some backwards compatibility to 'net rpc rights list'
* verify privilege name in 'net rpc rights privileges <name>' in order
  to give back better error messages.
(This used to be commit 0e29dc8aa3)
2007-10-10 10:56:20 -05:00