summaryrefslogtreecommitdiffstats
path: root/source/tests
Commit message (Collapse)AuthorAgeFilesLines
* lib/util_sock.c: Added debug print if core read or write fails to give UNIX ↵Jeremy Allison1999-02-059-2/+25
| | | | | | | errno. tests/* - Added #if defined(HAVE_UNISTD_H) to help with large file stuff. Jeremy.
* Fixed tests for platforms that have setreuid but not setresuid (suchJeremy Allison1999-01-111-12/+19
| | | | | as RedHat 5.x). Jeremy.
* lib/util_sec.c: Fixed order of calls to setresuid/setreuid/seteuid based on ↵Jeremy Allison1999-01-061-3/+3
| | | | | | | | autoconf tests. tests/trapdoor.c: Fixed problem where setresgid was being called in block of code that was #ifdefed for setregid. Jeremy.
* Added autoconf test for FTRUNCATE_NEEDS_ROOT.Jeremy Allison1999-01-041-0/+64
| | | | | | Fixed <rpc/rpc.h> include bug for SCO. Test for <arpa/inet.h> include for HPUX7.x. Jeremy.
* Rather large (I'm afraid) tidyup of the setuid handling code.Jeremy Allison1998-12-221-2/+16
| | | | | | | | | | | | | | | | | | | | All setuid code now resides in the one module lib/util_sec.c. The interfaces this module exports are : void gain_root_privilage(void); - Set real/eff/saved uid's to 0. void gain_root_group_privilage(void); - Set real/eff/saved gid's to 0. int set_effective_uid(uid_t uid); - Set eff uid *only* to given value. int set_effective_gid(gid_t gid); - Set eff gid *only* to given value. BOOL become_user_permanently(uid_t uid, gid_t gid); - Set real/eff/saved uid's and gid's to uid and gid permanently - with no way back to root. Most of the quota code now uses these calls (except for a few special cases). smbd/chgpasswd.c: Ensured the dochild exits in the fork()'d child. libsmb/nmblib.c: Fix from Jasper for memory leak. Jeremy.
* include/nameserv.h nmbd/nmbd_packets.c nmbd/nmbd_responserecordsdb.c:Jeremy Allison1998-12-171-3/+46
| | | | | | Fixed 'nmbd running wild' bug by preventing recursion in retransmit_or_expire_response_records(). tests/crypttest.c: Updated for bigcrypt. Jeremy.
* acconfig.h configure configure.in include/config.h.in: Added krb5 libs code ↵Jeremy Allison1998-12-161-0/+28
| | | | | | | | | | | back, based on 1.9.18 tree. tests/crypttest.c: Added test for truncated salt in crypt. passdb/ldap.c: Malloc checks. passdb/pass_check.c: Added test for truncated salt in crypt. Added OSF1 enhanced security fix. Jeremy.
* HPUX fix. This looks like a big change but isn't actually, most of theJeremy Allison1998-12-101-13/+32
| | | | | | | | | | | | | | | | changes are bzero -> memset as the compiler on HPUX is very picky about bzero (probably a strange define). The significant changes are in configure.in, to fix the HPUX shadow.h problem and also move the large file support to the correct place. passdb/pass_check.c: Added includes for KRB5, DCE and AFS if requested in autoconf. tests/trapdoor.c: Fix to use setresuid and setresgid if defined. The rest of the changes are bzero -> memset. Jeremy.
* server/srv_samr.c smbd/ipc.c: Changed global_myworkgroup back to fstringJeremy Allison1998-10-221-0/+1
| | | | | | | | (as it is everywhere else). smbwrapper/smbsh.c: For IRIX n32 binaries, set _RLDN32_LIST not _RLD32_LIST. Exec users preferred shell is SHELL environment variable is set. tests/fcntl_lock.c: Added sys/types.h for systems that need this. Jeremy.
* get away with dummy and .dummy filesAlexandre Oliva1998-09-291-1/+0
|
* automated generation of .dummy files for each subdirectory;Alexandre Oliva1998-09-281-1/+0
| | | | | dummy.in files are no longer needed, and new directories will be taken care of automatically, at configure (or config.status --recheck) time
* Makefile.in: Fixed bug with continuation line causing proto to fail.Jeremy Allison1998-09-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added $(PROGS) $(SPROGS) as targets for make clean. acconfig.h: Added HAVE_IRIX_SPECIFIC_CAPABILITIES. configure.in: Added sys/capability.h header check. Added function checks for srandom random srand rand. Added HAVE_IRIX_SPECIFIC_CAPABILITIES test. includes.h: Added #include <sys/capability.h>. ntdomain.h: Moved struct acct_info into here from smb.h smb.h: Added KERNEL_OPLOCK_CAPABILITY define. Moved enum action_type into rpcclient.h Moved struct cli_state into client.h Moved struct nt_client_info, struct tar_client_info, struct client_info into rpcclient.h lib/genrand.c: Changed to use sys_random() & friends. lib/smbrun.c: Lose capabilities after fork. lib/system.c: Added set_process_capability(), set_inherited_process_capability() sys_random(), sys_srandom(). lib/util.c: Added Ander's EFBIG lock check to fcntl_lock for 64 bit access to an 32 bit mounted NFS filesystem. nmbd/nmbd.c: Changed to use sys_random() & friends. nmbd/nmbd_browsesync.c: Changed to use sys_random() & friends. passdb/ldap.c: Missed one pdb_encode_acct_ctrl call. passdb/passdb.c: Changed to Ander's code for ' ' characters. passdb/smbpass.c: Added Ander's code to reset ACB_PWNOTREQ. script/mkproto.awk: Added 'long' to prototypes. smbd/chgpasswd.c: Lose capabilities after fork. smbd/open.c: Do the mmap *after* the kernel oplock. smbd/oplock.c: Removed stub code from kernel oplock path. Added set_process_capability(), set_inherited_process_capability() calls. smbd/reply.c: Initialize count = 0, offset = 0. smbd/server.c: Added set_process_capability(), set_inherited_process_capability() calls. tests/summary.c: Ensure we have RANDOM or RAND. utils/smbpasswd.c: Added Ander's code to reset ACB_PWNOTREQ. utils/torture.c: Changed to use sys_random() & friends. Jeremy.
* major autoconf clean-upAlexandre Oliva1998-09-211-0/+1
| | | | fix problems in builds with srcdir!=builddir
* configure configure.in: Added checks for statvfs64. Last bit of 64 bit ↵Jeremy Allison1998-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | widening (I hope :-). include/config.h.in: Added #undef STAT_STATVFS64. include/includes.h: Added SMB_STRUCT_STATVFS type, Changed SMB_BIG_INTEGER to SMB_BIG_UINT and SMB_BIG_INT types. include/smb.h: Added flag defines from CIFS spec. lib/debug.c: Fixed one more mode_t issue. lib/system.c: Added sys_statvfs wrapper. lib/util.c: Changed trim_string to use size_t. param/loadparm.c: Moved "blocking locks" into locking section. Alphabetised locking options. Question - shuld we do this for all options ? passdb/ldap.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/nispass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. passdb/smbpass.c: Changed SMB_BIG_INTEGER to SMB_BIG_UINT. smbd/dfree.c: Changed to use 64 bit types if available. Moved to use unsigned types. smbd/dosmode.c: Fixed one more mode_t issue. smbd/negprot.c: Changed literals to be FLAG_ #defines. smbd/nttrans.c: Removed dead code. smbd/open.c: Changed disk_free call. smbd/process.c: Changed literals to be FLAG_ #defines. smbd/reply.c: Changed disk_free call. smbd/trans2.c: Fixed but in SMB_QUERY_FS_VOLUME_INFO call. Was using UNICODE - should use ascii. tests/summary.c: Added STAT_STATVFS64 check. Jeremy.
* added a configuration summary at the end of ./configure. It alsoAndrew Tridgell1998-09-051-0/+28
| | | | aborts if essential functions are not available.
* expand the sysv shmem test to look for semaphores as well as sharedAndrew Tridgell1998-09-051-1/+21
| | | | | memory. Some FreeBSD systems have sysv shared memory but no semaphores!
* some people are foolishly running ./configure from other than theAndrew Tridgell1998-09-051-0/+4
| | | | | source directory! This adds a new "trivial" test that makes sure that the autoconf tests are working. It aborts the configure run if not.
* ignore the auto-generated dummy fileAndrew Tridgell1998-07-291-0/+1
|
* get rid of the runtime test for broken getgroups() and add a compileAndrew Tridgell1998-07-291-0/+62
| | | | | time test instead. This also allows us to get rid of the igroups element of a couple of structures.
* some merge cleanupsAndrew Tridgell1998-07-291-0/+0
|
* merge from the autoconf2 branch to the main branchAndrew Tridgell1998-07-296-0/+269