summaryrefslogtreecommitdiff
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* s3-includes: remove global include of "system/network.h"Günther Deschner2011-04-051-1/+0
| | | | | Guenther (cherry picked from commit 64422d973583a510e6ea2e655bf398ea85f445b5)
* s3-includes: only include system/passwd.h when needed.Günther Deschner2011-04-0531-1/+30
| | | | | Guenther (cherry picked from commit 49fcf653b11ef7308b849027d342a3182f270dd3)
* s3-includes: only include system/shmem.h when needed.Günther Deschner2011-04-053-1/+2
| | | | | Guenther (cherry picked from commit 7369ef1f1cdeeeed89e454c588edb51d2ea0e962)
* s3-includes: remove global include of "system/select.h".Günther Deschner2011-04-051-1/+0
| | | | | Guenther (cherry picked from commit fd8b5389f675c1ad54dcd81b05ebc12c046b484d)
* s3-includes: only include system/terminal.h when needed.Günther Deschner2011-04-052-1/+1
| | | | | Guenther (cherry picked from commit 55f9579110f3c7706d8008714ae69b49f0b463de)
* s3-includes: only include system/capability.h when needed.Günther Deschner2011-04-052-1/+1
| | | | | Guenther (cherry picked from commit 21a78b88cc56731793f41a04114ec7277f723147)
* s3-includes: only include system/glob.h when needed.Günther Deschner2011-04-052-1/+1
| | | | | Guenther (cherry picked from commit 739ca0e7db7acfd9d560ae361fd29f96f87c5755)
* s3-includes: only include system/iconv.h when needed.Günther Deschner2011-04-052-1/+1
| | | | | Guenther (cherry picked from commit 310d26852705c79194566eba971377bbac5f1c52)
* s3-includes: only include system/syslog.h when needed.Günther Deschner2011-04-056-1/+5
| | | | | Guenther (cherry picked from commit 89ca4875cd03ee7a4b8521a7ca838ce5d8391a21)
* s3-trans2: only include trans2.h where needed.Günther Deschner2011-04-0516-1/+15
| | | | | Guenther (cherry picked from commit 99f4a6454356c563704c6acb762679a6afa90737)
* s3-winbind: remove global inclusion of libwbclient.Günther Deschner2011-04-0521-36/+78
| | | | | Guenther (cherry picked from commit d85f140826374dd5ad3e7099b6bdb74967c6b9da)
* s3-waf: fix typo in ctdb checks.Günther Deschner2011-04-051-1/+1
| | | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Apr 5 17:20:19 CEST 2011 on sn-devel-104 (cherry picked from commit a7ba4b5baa18501a99c7b0f0d3eee1c347ed2e68)
* s3-samr: make getgrgid() failure a little more visible in ↵Günther Deschner2011-04-051-1/+1
| | | | | | | | | | _samr_CreateDomAlias(). Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Thu Mar 31 01:00:42 CEST 2011 on sn-devel-104 (cherry picked from commit 0e46e09122b43ff237ca45173129813a875767bd)
* s3-idmap: fix the build of idmap_hash on FreeBSD.Günther Deschner2011-04-051-0/+1
| | | | | Guenther (cherry picked from commit e54f292a4f4e9ea9726479333883d63035efc8d4)
* rep_parse_prs: remove some dead, unused code.Günther Deschner2011-04-052-421/+0
| | | | | Guenther (cherry picked from commit 5fcb4d328ce28e6c4f413f2b31d70e07818c0527)
* lib/util/util_pw: share more code between lib/util/util_pw.c and ↵Günther Deschner2011-04-057-37/+5
| | | | | | | source3/lib/username.c Guenther (cherry picked from commit 96487959e90b1aeec071d94e7f2c744af17fb5d0)
* lib/util/util_pw: share sys_get{pw,gr} group of calls.Günther Deschner2011-04-0512-53/+10
| | | | | Guenther (cherry picked from commit 64421129b672d0ce55c5aa235e5038dd2ea1b32b)
* lib-util: put data_blob back in the public librarySimo Sorce2011-04-051-1/+1
| | | | | | | | | data_blob is defined ina public header, so it needs to be exposed in the public library. Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Mar 17 15:39:08 CET 2011 on sn-devel-104 (cherry picked from commit 5d55ae0a2907b5ead5fb7d131aa00788d806ed9a)
* s3: Make vlp printing work by defaultVolker Lendecke2011-04-051-8/+55
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Apr 5 13:12:14 CEST 2011 on sn-devel-104 (cherry picked from commit fe35ff2bf98c166b2f3bfbaa171a58727e1ba091)
* s3: Fix print_spool_endVolker Lendecke2011-04-051-12/+0
| | | | | | We have to use the spoolss pipe instance opened in print_spool_open, otherwise the spoolss server won't be able to find the right printer and job. (cherry picked from commit 0f08e9d92222b97cfea3fa5c9ac633790cc4f76d)
* s3-net: add command "net idmap check"Gregor Beck2011-04-057-3/+1108
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a tool to check the consistency of an idmap tdb database. The default mode is to scan the database and list invalid entries, e.g. records with an invalid format, or records which are valid but for which the reverse mapping entry is missing. With the "--repair" switch, one can enter an interactive repair mode which will prompt for each invalid entry found with the option to delete, skip or edit the record. There is also a non-interactive repair mode triggered by "--auto" which will remove all records with invalid content and fill up mappings which are missing the reverse entry. The "--test" parameter lets "net idmap check" only list the changes that would be written and not actually commit them to the database. The "--lock" option allows to lock the database already in the first reading traverse, in order to remove the race when the database has to be closed and reopened again before writing the changes. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Apr 4 18:21:09 CEST 2011 on sn-devel-104
* s3: add function srprs_quoted to parse strings written with cbuf_print_quotedGregor Beck2011-04-052-1/+52
|
* s3: add function cbuf_print_quotedGregor Beck2011-04-052-1/+49
|
* s3: add function dbwrap_traverseGregor Beck2011-04-052-0/+12
|
* s3: add function dbwrap_trans_traverseGregor Beck2011-04-052-0/+33
|
* s3: fix cbuf_swapptrGregor Beck2011-04-051-0/+2
|
* Move SET_STAT_INVALID call added by Volker as fix for bug 8042 - Newly ↵Jeremy Allison2011-04-041-3/+3
| | | | | | | | | | | | create files are always failed with NT_STATUS_FILE_IS_A_DIRECTORY Ensure we do this for all cases where the stat fails. Jeremy Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 4 20:08:45 CEST 2011 on sn-devel-104 (cherry picked from commit 2ec48260ee377e499fe7f0fc2ca18b8a078c6aaa)
* Note that check_parent_exists() doesn't change the contents of smb_fname ↵Jeremy Allison2011-04-041-1/+1
| | | | | | (add const). (cherry picked from commit 074239ac2eec666abb892b5eef46ca70691ed41f)
* Fix bug #7987 - ACL can get lost when files are being renamed.Jeremy Allison2011-04-033-1/+49
| | | | | | | | | | There is no reason for smbd with Windows ACLs to use chmod or fchmod unless it's a file opened with UNIX extensions or with posix pathnames. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Apr 2 02:40:43 CEST 2011 on sn-devel-104 (cherry picked from commit 00224d06c389e9744b83bcec09a9d002086058fc)
* s3: Fix bug 8042: File creation on OS/XVolker Lendecke2011-04-031-0/+3
| | | | | | | | | | | | | | | | With a case insensitive file system the stat cache lookup leaked the parent directorys stat information from unix_convert into the smb_filename. This led open_file_ntcreate to believe it just created a directory. In the case where we do the search we already invalidate the stat struct. Thanks to TAKAHASHI Motonobu for insisting! :-) Volker Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 3 14:54:27 CEST 2011 on sn-devel-104 (cherry picked from commit 2b94169cda00e31a3b7814996abf42635735b6ff)
* Fix for servers that don't put a path separator at the end of the service.Larry Reid2011-04-031-4/+13
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Apr 3 10:33:42 CEST 2011 on sn-devel-104 (cherry picked from commit 76f7c2a2541259156f08626f73cb63b6044e4e34)
* s3:waf: add cluster support / ctdb checks.Michael Adam2011-04-021-0/+196
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The checks are roughtly taken from the autoconf ctdb checks. I was not able to implement checks with CHECK_DECL, CHECK_TYPE, CHECK_HEADER and friends, because the ctdb headers seem to need too special a setup of includes and defines in order to compile. So I used CHECK_CODE() in all checks. In the long run, this should be changed. I supported a --with-ctdb-dir options to allow for building against a ctdb that is not installed into /usr (e.g. against a local git checkout). In order to implement this, I had to hand includes in to the CHECK_CODE function. Here I found a problem with CHECK_CODE (or even the core waf conf.check() function: The CHECK_CODE function does not expand the includes it gets (i.e. '#' is not expanded to the base dir, and relative paths are left relative). But the core check() function seems to ignore all include paths that are not absolute paths. Hence in particular the usual default '# .' for the includes is useless. So I preprocessed the list of includes for the cluster checks. But I assume that it would be useful to move this expansion into CHECK_CODE or even into the core waf check function. Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Sat Apr 2 03:26:55 CEST 2011 on sn-devel-104
* Fix bug #8047 - mdns registration doesn't work if "interfaces" is used in ↵Marc A. Dahlhaus2011-04-011-0/+7
| | | | | | | | smb.conf Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 1 23:15:34 CEST 2011 on sn-devel-104 (cherry picked from commit ac216c130e5d1f1c86d7e481838748208bb68f73)
* s3-winbindd: Use the correct enums for samr_QueryDomainInfo.Andreas Schneider2011-04-011-2/+2
| | | | (cherry picked from commit d9ad60f0dc40be1e1d533f96ec0032e01035d85b)
* s3-net: Do not use uninitialized valueSumit Bose2011-04-011-0/+2
| | | | | | | | | | s3-net: Do not use uninitialized value Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Thu Mar 31 18:09:57 CEST 2011 on sn-devel-104 (cherry picked from commit 34ea813553368a7f0805693c9731e9b0abfefa99)
* s3: Fix Coverity ID 1137: CONSTANT_EXPRESSION_RESULTVolker Lendecke2011-04-011-2/+2
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Apr 1 09:35:19 CEST 2011 on sn-devel-104 (cherry picked from commit 1272758f8f989647802ea90722661ab133efa83f)
* s3: Fix Coverity ID 1136: CONSTANT_EXPRESSION_RESULTVolker Lendecke2011-04-011-1/+1
| | | | (cherry picked from commit d9b03cb4f0906bc7844c4abffcb3c9d8b04dc5eb)
* s3-ctdb_wrap: remove unused variable from db_ctdb_fetch_persistent().Günther Deschner2011-03-311-1/+0
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Mar 30 02:00:50 CEST 2011 on sn-devel-104
* s3:configure: allow building without SCHEDULE_FOR_DELETION with ↵Michael Adam2011-03-311-2/+6
| | | | | | | --enable-old-ctdb Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Mar 31 18:55:38 CEST 2011 on sn-devel-104
* s3:configure: introduce "--enable-old-ctdb" to enable enforcing build ↵Michael Adam2011-03-311-0/+6
| | | | against old ctdb
* s3:configure: add check for new CTDB_CONTROL_SCHEDULE_FOR_DELETIONMichael Adam2011-03-311-0/+19
|
* s3:configure: rework logic of ctdb/clustering checksMichael Adam2011-03-311-77/+113
|
* s3:configure: remove unused variable CTDB_CFLAGSMichael Adam2011-03-311-2/+0
|
* s3:configure: fix a comment.Michael Adam2011-03-311-1/+1
|
* s3:dbwrap_ctdb: in ctdb_delete, send a SCHEDULE_FOR_DELETION control to ↵Michael Adam2011-03-311-1/+56
| | | | | | | | | | | | local ctdbd This way, the record will be scheduled for fast vacuuming. This is sent with the NOREPLY flag, so ctd should not sent a reply packet and samba does not expect one. Hence, it is not important for the success of the db_ctdb_delete command whether or not the ctdbd we are running against supports the SCHEDULE_FOR_DELETION control.
* s3:ctdb: pass the ctdb control flags to the ctdb daemon when sending the controlMichael Adam2011-03-311-0/+1
| | | | | | The only flag that is currently used is the NOREPLY flag to indicate that the client expects no reply packet. This needs to get passed down to the ctdb daemon so that it really does not send a reply.
* s3:ctdb: correctly handle cstatus if CTDB_CTRL_FLAG_NOREPLY is set.Michael Adam2011-03-311-0/+3
|
* Fix bug #7996 - sgid bit lost on folder rename.Jeremy Allison2011-03-313-1/+23
| | | | | Refuse to set dos attributes into unix mode bits on such a folder.
* SMBTA: make vfs_smb_traffic_analyzer aware of the sendfile and recvfile ↵Holger Hetterich2011-03-311-1/+41
| | | | | | functionality and store the results as common read/write results. (cherry picked from commit cf5ed92bb78806403a857b371ef15f985a4e2b64)
* s3: Fix g_lock_lock after the select/poll conversionVolker Lendecke2011-03-301-1/+1
| | | | | | | | | Without clustering we don't have an fd to listen on, and sys_poll needs one element of space Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Mar 30 18:36:50 CEST 2011 on sn-devel-104 (cherry picked from commit 8f4e39f6f7636ad36d686a52aaefc18a411a7f02)