1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-22 16:59:09 +03:00
Commit Graph

69 Commits

Author SHA1 Message Date
994694f7f2 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.
2007-10-10 10:56:24 -05:00
5b19ede88e 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.
2007-10-10 10:56:24 -05:00
d3edf71885 r416: add a newline to the debuglevel message returned string
and have smbcontrol print the PID with it
2007-10-10 10:51:22 -05:00
7495395c1c Fix -s option to smbcontrol (#908) -
0519a7022b Final round of printf warnings fixes for the moment. -
8b818ce381 Replace the eight (!) copies of dummy become/unbecome root with a single one. -
02c5e2fc6f Add support for MSG_SMB_CONF_UPDATED and MSG_SHUTDOWN to all daemons (smbd, nmbd, winbindd). Reviewed by jerry and tridge. -
8f830c509a Some const correctness. Stop tdb being used as a remote backend. If an
idmap backend is specified cause smbd to ask winbindd (use winbindd if
you want a consistant remote backend solution).
Should work well enough for next beta now...
Jeremy.
-
d817eaf0ec Reverse previous patch from Stefan and me after comments by Andrew Bartlett -
74d9ecfe2d Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
-
edbab685d1 Sun CC requires constant initialisers, so use a static here.
(a common bug with popt stuff, becouse it's fine with GCC).
-
a847ebd827 Merge of const fixes from HEAD. -
82ba1b4d16 Fix up non-constant initialisers for Sun's CC.
Andrew Bartlett
-
30ac37efec Merge rewrite of smbcontrol. -
38d03f4f1a Give warning if 'drvupgrade' doesn't get an argument -
77ae3360e3 Merge of smbcontrol debuglevel fixes from HEAD. -
07efebb984 Add 3 second timeout when terminating server and sending print notify
messages. Stops build-up of large numbers of smbd's waiting to terminate
on large print throughput.
Jeremy.
-
3a7458f947 Merge from HEAD - make Samba compile with -Wwrite-strings without additional
warnings.  (Adds a lot of const).

Andrew Bartlett
-
09a218a9f6 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
-
d06e77b60e fix usage message -
d3998307ad Merge a bunch of trivial changes from HEAD. The difference remaining
should actual functional differences between HEAD and 3.0.

 - Mostly reformatting
 - Removal of unecessary #include "smb.h"
 - Merge of dyn_DRIVERFILE removal
 - Silly bug fix for python code
-
f1062e79de [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
-
f755711df8 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
-
d030df7643 Merge of scalable printing code fix... Needs testing.
Jeremy.
-
65e7b5273b sync'ing up for 3.0alpha20 release -
1b83b78e33 sync 3.0 branch with HEAD -
03ac082dcb updated the 3.0 branch from the head branch - ready for alpha18 -
b83f87d681 added a shutdown command to smbcontrol.
have to add the server side now.

	J.F.
-
a3cea5e9ae getpid() -> sys_getpid() -
28d4e7a3e2 Fixup the sending of printer change messages from job changes.
Jeremy.
-
6a58c9bd06 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
-
63ea2bb0ad Quieten warning about uninitialized variable. -
bcb443c5c4 Add two more memory-debug smbcontrol messages: these ones should
prompt dmalloc to log information about what happening, so you can see
in flight why smbd is getting bloated.
-
39d6b31e14 merge changes from 2.2 branch to prevent smb.conf from changing debug level
of commands when specified on command line.
-
a9b9ae47e1 Cleanup format. -
9b217dce7f smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
boring so far.
-
830a126a44 smbd should register to receive MSG_REQ_POOL_USAGE. Response should
be information about memory usage, but this is not done yet.
-
ecc624067c smbcontrol in non-interactive mode was returning True for success --
need to invert this to give the shell 0.
-
53f1c0298b Add option to pass NULL max_replies to wait_for_replies in case you
don't know how many to expect.
-
17bb0f60af Add code to send MSG_REQ_POOL_USAGE. (smbd doesn't respond yet.)
Factor out common code to wait until replies are received or timeout
expires.

Show debug message when messages are sent.
-
8fc772c9e5 Removed TimeInit() call from every client program (except for one place
in smbd/process.c where the timezone is reinitialised.  Was replaced with
check for a static is_initialised boolean.
-
694372b2c4 Merged in JohnR's ping messaging extension.
Jeremy.
-
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
-
9ecd9db4ef Added -s configfile to smbcontrol.c.
Volker
-
c26e0d3f27 got rid of USE_TDB_MMAP_FLAG as its not needed any more -
f35887c7d4 When sending a message via a tdb, it must be open read/write.
Jeremy.
-
b0c8090396 Added samsync and samrepl (untested) message types to smbcontrol. -
840802f106 Added "use mmap" for HPUX.
Jeremy.
-
debb471267 The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
-
15b17a80db added a close-share smbcontrol message that forcibly closes a share in smbd (to allow unmount) -