summaryrefslogtreecommitdiff
path: root/source3/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-06-04s3: map NetBSD's errno on posix open calls for symlinksBjörn Jacke1-0/+3
This is well undocumented but NetBSD returns EFTYPE on O_NOFOLLOW open calls on symlinks.
2009-06-03s3: correct check for usleep value boundariesBjörn Jacke1-1/+1
2009-05-31Fix some nonempty blank linesVolker Lendecke1-52/+50
2009-05-30Move ads flags mapping to lib/Volker Lendecke1-0/+150
2009-05-30libwbclient: Add async call framework.Kai Blin2-1111/+0
2009-05-29Add smbldap_talloc_single_blob()Volker Lendecke1-6/+25
2009-05-29s3 async wbclient: Change license to LGPLv3+Volker Lendecke2-16/+24
2009-05-29util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner1-33/+0
Guenther
2009-05-28Make sid_binstring & friends take a talloc contextVolker Lendecke3-12/+15
2009-05-28Add smbldap_pull_sidVolker Lendecke1-0/+20
2009-05-27s3: Allow child processes to exit gracefully if we are out of fdsMarc VanHeyningen1-6/+6
When we run out of file descriptors for some reason, every new connection forks a child that immediately panics causing smbd to coredump. This seems unnecessarily harsh; with this code change we now catch that error and merely log a message about it and exit without the core dump. Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-26Attempt to fix the build on NetBSDVolker Lendecke1-0/+6
2009-05-26Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke4-260/+222
This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
2009-05-25s3:dbwrap_ctdb: fix some function header commentsMichael Adam1-3/+12
Michael
2009-05-24Don't limit the number of retries in wb_trans.Volker Lendecke1-8/+0
This is better done with a tevent_req_set_endtime the caller should issue.
2009-05-24Don't set a timeout deep inside wb_connectVolker Lendecke1-5/+0
2009-05-24Do queueing in wbclient.cVolker Lendecke2-46/+59
The _trigger fn must know about wbc_context, while we were waiting in the queue the fd might have changed
2009-05-24Fix closed_fd(): select returning 0 means no fd listeningVolker Lendecke1-4/+7
2009-05-24Fix wb_simple_trans queueingVolker Lendecke1-16/+3
2009-05-24Add "err_on_readability" to writev_sendVolker Lendecke1-2/+2
A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
2009-05-19Fix wb_trans_done after conversion to unix calling conventionsVolker Lendecke1-2/+2
2009-05-19Fix an uninitialized variable in wb_context_initVolker Lendecke1-0/+1
2009-05-19Use TDB_VOLATILE instead of tdb_set_max_dead()Volker Lendecke1-5/+2
2009-05-18Fix bug 5681: Do not limit the number of network interfacesVolker Lendecke3-22/+39
Jeremy as far as I can see there is no real technical reason to limit the number of interfaces. If you like this patch, can you please merge it to 3.4? If you don't please tell me :-) Thanks, Volker
2009-05-17s3-events: Not only timed, also immediate events generate a timeout returnVolker Lendecke1-1/+1
2009-05-16s3-events: If immediate requests are pending, the timeout is 0Volker Lendecke1-0/+9
2009-05-16Update copies of config.guess and config.sub.Jelmer Vernooij2-76/+282
2009-05-16s3-privileges: add privilege_delete_account().Günther Deschner1-0/+28
Guenther
2009-05-16s3-privileges: remove trailing whitespace from privileges codes.Günther Deschner2-105/+105
Guenther
2009-05-15s3-netdomjoin-gui: allow to switch between workgroups/domains with the same ↵Günther Deschner1-2/+4
name. Guenther
2009-05-15s3-netdomjoin-gui: cosmetic fix for empty hostnames.Günther Deschner1-0/+1
Guenther
2009-05-15s3-netdomjoin-gui: only gray out labels when not root and not connecting toGünther Deschner1-3/+3
remote machines. Guenther
2009-05-14s3-netapi: implement NetShutdownInit_r and NetShutdownAbort_r.Günther Deschner1-2/+49
Guenther
2009-05-14s3-netapi: add example code for NetShutdownInit and NetShutdownAbort.Günther Deschner3-1/+183
Guenther
2009-05-14s3-netapi: add NetShutdownInit and NetShutdownAbort to public API.Günther Deschner1-0/+36
Guenther
2009-05-14s3-netapi: add NetShutdownInit and NetShutdownAbort skeletons.Günther Deschner3-0/+163
Guenther
2009-05-14Fix some nonempty blank linesVolker Lendecke1-23/+23
2009-05-13s3:libsmb: move read_smb_send/recv() static in async_smb.cStefan Metzmacher1-87/+0
metze
2009-05-13s3-netdomjoin-gui: prepare to call out for NetRenameMachineInDomain() to ↵Günther Deschner1-1/+48
rename computers in domains. Guenther
2009-05-12s3-netdomjoin-gui: Fix join prompt dialog test.Günther Deschner1-1/+1
Guenther
2009-05-12s3-netdomjoin-gui: use NetServerGetInfo() level 101 to get hostname.Günther Deschner1-2/+7
Guenther
2009-05-12s3-netdomjoin-gui: inspect the correct computername string beforeGünther Deschner1-1/+1
enabling/disabling the change button. Guenther
2009-05-12Clean up assignments to iov_base, ensure it's always cast to void *. This ↵Jeremy Allison3-10/+10
should quieten some warnings with picky compilers on the buildfarm. Jeremy.
2009-05-12Fix bug 6157Volker Lendecke1-0/+56
This patch picks the alphabetically smallest one of the multi-value attribute "uid". This fixes a regression against 3.0 and also becomes deterministic.
2009-05-11Add checks for non_root mode to help buildfarm spoolss tests.Jeremy Allison1-14/+18
Reviewed by Guenther. Jeremy.
2009-05-09wb_int_trans -> wb_simple_trans in wbclient.cVolker Lendecke1-148/+24
2009-05-09Add wb_simple_trans_send/recvVolker Lendecke1-1/+130
2009-05-07Convert lib/wb_reqtrans.c to unix calling conventionsVolker Lendecke2-91/+107
2009-05-07Adapt wb_reqtrans to "recent" coding conventionsVolker Lendecke1-44/+28
2009-05-05Make cli_getatr() async.Jeremy Allison1-1/+1
Jeremy.