summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed "declaration shadows global declaration" warnings.Tim Prouty2008-10-151-19/+19
| | | | | | | | | | | The patch simply uses a more descriptive variable name for tcp_seq. lib/socket_wrapper/socket_wrapper.c:753: warning: declaration of 'tcp_seq' shadows a global declaration /usr/include/netinet/tcp.h:40: warning: shadowed declaration is here lib/socket_wrapper/socket_wrapper.c: In function `swrap_marshall_packet': lib/socket_wrapper/socket_wrapper.c:919: warning: declaration of 'tcp_seq' shadows a global declaration /usr/include/netinet/tcp.h:40: warning: shadowed declaration is here (cherry picked from commit 03cbea1d653c716b16347c831aa56dca0eb297ab)
* If name_to_fqdn fails, retry with the dns domain the DC gave usVolker Lendecke2008-10-151-3/+8
| | | | | | | This is a workaround for the cases where you want to join under a netbios name that is different from your hostname, i.e. a name that can not be found in /etc/hosts or dns. In these cases, name_to_fqdn fails or gives invalid results. (cherry picked from commit 84951b54bc1473aa9275c02cc37a9f0d7d4150e2)
* Log in the parent winbind log where a request is goingVolker Lendecke2008-10-151-0/+4
| | | | (cherry picked from commit f63bac521f0595ccbcf687678e325649f3e0e5e3)
* Attempt to fix bug 5778Volker Lendecke2008-10-061-0/+10
| | | | | | Jeff, Steve, please check! (cherry picked from commit 110756cc7bcaed5a9d6aa58f3b3fe4481f8d1f31) (cherry picked from commit 46b050e525b339fbac68329f668e47ebd11b3e08)
* Remove an unused variableVolker Lendecke2008-10-061-1/+0
| | | | (cherry picked from commit 41aed9f2f3c6d53e1b8b6d72467bc5d5a0689dce)
* Fix some missing error handlingsVolker Lendecke2008-10-061-0/+5
| | | | (cherry picked from commit 1709a099c82e9b06771b3aa562c5488a71f10c62)
* OS/X does not have rl_done in readline.hVolker Lendecke2008-10-061-0/+8
| | | | (cherry picked from commit af055bb8d89a14ed572f76b5f8fe492e0ed98e12)
* Fix an uninitialized variable warningVolker Lendecke2008-10-061-0/+2
| | | | | Not sure if we can ever not get domain and dns_domain, but gcc complained (cherry picked from commit e56b0b947a5c357c4e84b330c38d7a7f569be201)
* Fix an unlikely memleak found by the IBM checkerVolker Lendecke2008-10-061-0/+2
| | | | (cherry picked from commit 52365077e74e80959a42aa82cf9a6c959e2fcda5)
* Fix an uninitialized variable found by the IBM CheckerVolker Lendecke2008-10-061-0/+1
| | | | (cherry picked from commit 65169e4b5f182f1614e102bb0e09326a26bd5b5d)
* Fix a potential NULL deref in line 258 found by the IBM checkerVolker Lendecke2008-10-061-0/+1
| | | | (cherry picked from commit de581efedbc53a783a680ff366d37aeccd14ee23)
* Correctly fix smbclient to terminate on eof from server.Jeremy Allison2008-10-062-3/+23
| | | | | Jeremy. (cherry picked from commit 4dc2eb7f42bad6812d21bf4577e2901b04a5ca83)
* net_dns: Make "lwinet ads dns register" honor the "interfaces" parameter.Gerald (Jerry) Carter2008-10-061-13/+12
| | | | | | | This is helpful on multihomed hosts that only require a subset of IP addresses be registered with DNS. (cherry picked from commit 17c9f8810598d8117befc896d12a597a52b0ac3b) (cherry picked from commit 2fb742e127f725b56f308538852d7b10b86f29c1)
* libaddns: Use the same prerequisite for DDNS update as Windows XP.Gerald (Jerry) Carter2008-10-061-2/+2
| | | | | | | | | Hostname, TYPE: CNAME, CLASS: NONE This has to have been broken for ages. I cannot see how it would have worked in any environment. (cherry picked from commit 6b6402bce318a48b0890ed6fc23ed5b30440927b) (cherry picked from commit adde53eddb85e9af391c3f77425a3376c5c60dbf)
* Fix bug #5080. Access to cups-printers via samba broken with cups 1.3.4, ↵Jeremy Allison2008-10-061-79/+203
| | | | | | | | | | Unsupported character set. Cups 1.3.4 expects utf8 to be used in all messages to/from the server. We may be using a different character set so we need to use talloc utf8 push/pull functions in all communication. Contains the !server fix already applied to 3.3. Jeremy. (cherry picked from commit a1323951a3264f81be07276f021201bee0d8d0f5)
* Fix bug 5805: don't close stdoutDerrell Lipman2008-10-061-1/+3
| | | | | | | | | - When calling setup_logging multiple times, the code was closing the debug file descriptor before opening or assigning the new one. We don't, however, want to close the debug file descriptor if it is stdout. Derrell (cherry picked from commit 7142872d2c6e0be42307671afa31016f6940007d)
* Whitespace cleanup.Jeremy Allison2008-10-061-19/+19
| | | | | Jeremy. (cherry picked from commit d596f78517f33f5a4c4849be3162d4f3031f045f)
* Fix use of DLIST_REMOVE as spotted by Constantine Vetoshev <gepardcv@gmail.com>.Jeremy Allison2008-10-063-5/+5
| | | | | | | | | | | | | | | | | | This API is unusual in that if used to remove a non-list head it nulls out the next and prev pointers. This is what you want for debugging (don't want an entry removed from the list to be still virtually linked into it) but means there is no consistent idiom for use as the next and prev pointers get trashed on removal from the list, meaning you must save them yourself. You can use it one way when deleting everything via the head pointer, as this preserves the next pointer, but you *must* use it another way when not deleting everything via the head pointer. Fix all known uses of this (the main one is in conn_free_internal() and would not free all the private data entries for vfs modules. The other changes in web/statuspage.c and winbindd_util.c are not strictly neccessary, as the head pointer is being used, but I've done them for consistency. Long term we must revisit this as this API is too hard to use correctly. Jeremy. (cherry picked from commit 347fc4ed725083f2c520afc39f7c81db0dd60324)
* Turn the socket connections into a refcounted list - in the common case ↵Jeremy Allison2008-10-061-44/+94
| | | | | | | | | | there'll now only be one socket per smbd. Changed the format of the wire data to (a) include a version number (V1) as the first element. (b) removed the ";)" at the end an replaced it with a "\n". Receiver can change back if needed, and now receiver can just log "as-is" to a text file (making testing easier). Added my (C). Sorry Holger, but I've changed quite a bit now. Jeremy. (cherry picked from commit 7ea95c19305a2fb6efc95acc4e96f083e31f6c6f)
* Convert to allocated strings. Use write_data(), not send as this doesn't ↵Jeremy Allison2008-10-061-58/+42
| | | | | | | | correctly deal with EINTR. Jim and Holger please check this still works. Jeremy. (cherry picked from commit dc1ff1a9c07edf7e3e649b256667704ad59aafbd)
* Restructure the module so it connects to the remote data sinkJeremy Allison2008-10-061-150/+156
| | | | | | | | | on connect, and closes the socket on client disconnect. This should make it much more efficient. Store the remote fd in a private data pointer off the handle. Finally we need to remove the fstrings and convert to allocated buffer storage. Jeremy. (cherry picked from commit 2f7884babcefcb04d1f9a877dde41e11b0f7b825)
* Fix the make test problem Karolin reported. Now rename_open_files actually ↵Jeremy Allison2008-10-061-2/+2
| | | | | | | works correctly we must emit the change notify before we change the name, not before. Jeremy. (cherry picked from commit 10ae99d86c0c90bee9a0538854f6f96fc7cbbc23)
* re-added "winbind:ignore domains" patchAndrew Tridgell2008-10-061-3/+21
| | | | | | | | | | | | | This option really is essential, as we discover again and again at customer sites. Due to bugs in winbind some domains are toxic. When you are installing at a site and a particular domain in a complex setup causes winbind to segfault or hang then you need a way to disable that domain and continue. In an ideal world winbind could handle arbitrarily complex ADS domains, but we are nowhere near that yet. If we ever get to that stage then we won't need this option. (cherry picked from commit 41898a42c1ad7d382088799a6e3f712583808d20)
* fixed segv on startup with trusted domainsAndrew Tridgell2008-10-061-1/+21
| | | | | | | With some setups, idmap_tdb2_allocate_id can be called before the allocate backend is initialised, leading to a segv. This change ensures that the db is opened in all paths that use it (cherry picked from commit 3a2a70996919a7ee08fea40b8e5f1cf2e3bd7caf)
* Ensure we null out fsp after a close in all paths.Jeremy Allison2008-10-061-0/+1
| | | | | Jeremy. (cherry picked from commit 3cba8305bd32c7a83fd9c39eaea953b8a0199b22)
* Avoid freeing fsp twice when opening new_file fails. (Debian #431696)Jelmer Vernooij2008-10-061-0/+1
| | | | | | If opening new_file fails, fsp would still be set to the files_struct of old_file. (cherry picked from commit f75b53f85cbccc4b37db4c9adc0df81a06898d38)
* Add an initial version of a manpage for the vfs_smb_traffic_analyzer module.Holger Hetterich2008-10-061-0/+157
| | | | (cherry picked from commit 503d1c0226fb38c21b14fe1deac11b0ec461b4d0)
* Second part of the fix for bug #5790 - samba returns ↵Jeremy Allison2008-10-061-4/+6
| | | | | | | | STATUS_OBJECT_NAME_NOT_FOUND on set file disposition call. This was my fault. I use a singleton cache (positive and negative) to speed up pathname based qfileinfo/setfileinfo lookups for alternate fsp's open on the same path. I only invalidated the negative cache on adding a new file fsp, as I incorrectly imagined the new fsp was put at the *end* of the open files list. DLIST_ADD puts it at the start, meaning any subsequent open wasn't seen once the cache was set. Doh ! Jeremy. (cherry picked from commit a7fd59a26bfc4a98b6936dc3ac8e67e1a7cb3733)
* Fix bug #5797 - Moving readonly files fails. Reported by infomail@lordb.de.Jeremy Allison2008-10-061-3/+1
| | | | | | | | | We don't need to deny a DELETE open on a readonly file (I'm also adding a s4 torture test for this), the set_file_disposition call will return NT_STATUS_CANNOT_DELETE if the delete-on-close bit is set on a readonly file (and we already do this). Jeremy. (cherry picked from commit dd43302066b2d3f5270d3ee25a1e2c85d8ce2b85)
* s3-srvsvc: fix _srvsvc_NetShareAdd segfault.Günther Deschner2008-10-061-1/+3
| | | | | | | | parm_err is not a ref pointer. Guenther (cherry picked from commit 29942b7043c1a31ad4fb76d01ab19fd3dbf26f0a) (cherry picked from commit 6debf35c1575a25f98f927726742a7f34b3a55a9)
* Use IPv4/v6 independent calls. Change safe_strcpy/cat to strlcpy/cat (thisJeremy Allison2008-10-061-84/+97
| | | | | | | needs changing to talloc_sprintf) and fix file descriptor resource leaks in error paths. Jim and Holger please check ! Jeremy. (cherry picked from commit d55becbe492cf3c95ef45ebb2c123067a9297b4f)
* Fix the new vfs_smb_traffic_analyzer build for static linksJim McDonough2008-10-061-2/+2
| | | | (cherry picked from commit d36039acd8f1722ba76b5999d7fea4f046735817)
* SMB traffic analyzer vfs module from Holger Hetterich <hhetter@novell.com>Holger Hetterich2008-10-063-1/+358
| | | | | | | | | Used to gather data to feed to a database for live and historical analysis of usage per user, per share, etc. Helper apps to read the data still to come. This one still needs to be made ipv6 enabled (connection is made to the helper app). (cherry picked from commit baf49e5fcabd3682927fe19974c97bbae4be7379)
* Fix bug #5790 samba returns STATUS_OBJECT_NAME_NOT_FOUND on set file ↵Jeremy Allison2008-10-061-4/+2
| | | | | | | | | disposition. We were checking that fd != -1 in file_find_di_XXX calls which is no longer needed due to a change in internal semantics. Jeremy. (cherry picked from commit bd7acd6344022e87495edc124e262eb50ba5ebd8)
* Fix winbindd crash in an unusual failure mode. Bug #5737. Based on original ↵Jeremy Allison2008-10-061-5/+9
| | | | | | | patch from shargagan@novell.com Jeremy. (cherry picked from commit 0a0426650e596453b4b8aa6536f4fe8b1d890451)
* Fix bug #5783 FindFirst fails where search pattern == mangled filename.Jeremy Allison2008-10-062-8/+8
| | | | | | That was an old and subtle bug. Jeremy. (cherry picked from commit c412888f916563c44c4c753884df23c1951f6e27)
* build: don't install the cifs.upcall binary twice.Günther Deschner2008-09-181-1/+1
| | | | | | | | Guenther (cherry picked from commit 1f44b4aaa5f700827ee2ab272ae4b59e559b094b) (cherry picked from commit 020c03bff844ef976dd786a755c4d682bf161a3d) (cherry picked from commit 5a9a190a5588b0cf938bc5c9659b7704d18cd4a3) (cherry picked from commit c83295d3b575be80a432c4716be62cd63eb3bdef)
* build-docs: Add 'make clean'.Karolin Seeger2008-09-181-0/+3
| | | | | | | Karolin (cherry picked from commit cf40fb97239ed9a11e5750fde6e078233e567bba) (cherry picked from commit 6e1d92e3b324a0759486f914a0e4b32be1142aee) (cherry picked from commit 656189740d701246a8689e3348510715122bf148)
* WHATSNEW: Start WHATSNEW for 3.2.5.Karolin Seeger2008-09-181-101/+5
| | | | Karolin
* VERSION: Raise version number up to 3.2.5.Karolin Seeger2008-09-181-1/+1
| | | | Karolin
* find_missing_manpages.pl: Adapt script to changed directory structure.samba-3.2.4Karolin Seeger2008-09-181-7/+20
| | | | | | Karolin (cherry picked from commit b6b7aa023b62ab8994d13cb91d5185204c1500b2) (cherry picked from commit d553faff4ae9aa1fdc1bb716e901dcede7799f27)
* Ensure all pointers are initialized. Without this we can crash when looking ↵Jeremy Allison2008-09-181-20/+20
| | | | | | | up a non-existant uid. Jeremy. (cherry picked from commit a31b006a411266adf49d2eefd1f80bbb091f0c4c)
* WHATSNEW: Update changes since 3.2.3.Karolin Seeger2008-09-171-0/+5
| | | | | Karolin (cherry picked from commit 01fa2fa4b38d90573ada3dd4f9d67b1be52fd83b)
* idmap_ad: Fix a segfault when calling nss_get_info() with a NULL ads structure.Gerald W. Carter2008-09-171-12/+69
| | | | (cherry picked from commit 30a660ea41faa3b84afa8819c7673b3fe334e79b)
* WHATSNEW: Update changes since 3.2.3.Karolin Seeger2008-09-161-0/+9
| | | | | Karolin (cherry picked from commit bf38373c978c8e1fd4c33d024e9608fe5083c344)
* man cifs.upcall: Fix typo, wrap lines.Karolin Seeger2008-09-161-1/+5
| | | | | | Karolin (cherry picked from commit c4f361a17f51e4897ac2faafc65ebc8349e19001) (cherry picked from commit da7a60a82bfecbf5b1a10bdbccf4682fd92b65bb)
* Fix aio on FreeBSD.Timur2008-09-162-1/+31
| | | | (cherry picked from commit 144b1bb05a734e15369d6d59636b6849d9405af5)
* Fix display of POSIX ACLs.Timur2008-09-161-2/+2
| | | | (cherry picked from commit faa732c245c9296ff4cd4a56f353c3d5d1b0d202)
* Fix cut and paste error in quota code.Timur2008-09-161-2/+2
| | | | (cherry picked from commit c2a05d4ed34aa8185a7d236e8d7b1493d67a3068)
* Simple fix for warning:Steven Danneman2008-09-161-1/+1
| | | | | | | Compiling utils/sharesec.c utils/sharesec.c: In function `change_share_sec': utils/sharesec.c:404: warning: 'sd' might be used uninitialized in this function (cherry picked from commit 931abf7898f574fcf70c239b2ad5c180ff6bb8e8)