mc/vfs/samba/tests/summary.c
Pavel Roskin e30e6b8a5a * samba/configure.in: Don't check for root permissions. Don't
call tests/trapdoor.c and tests/ftruncroot.c.
* samba/tests/trapdoor.c: Remove.
* samba/tests/ftruncroot.c: Likewise.
* samba/tests/summary.c: Don't warn about trapdoor uid systems.
2001-02-08 00:59:35 +00:00

25 lines
699 B
C

#include <stdio.h>
main()
{
#if !(defined(HAVE_FCNTL_LOCK) || defined(HAVE_STRUCT_FLOCK64))
printf("ERROR: No locking available. Running Samba would be unsafe\n");
exit(1);
#endif
#if !(defined(HAVE_SYSV_IPC) || defined(HAVE_SHARED_MMAP))
printf("WARNING: no shared memory. Running with slow locking code\n");
#endif
#if !(defined(HAVE_NETMASK_IFCONF) || defined(HAVE_NETMASK_IFREQ) || defined(HAVE_NETMASK_AIX))
printf("WARNING: No automated netmask determination - use an interfaces line\n");
#endif
#if !((defined(HAVE_RANDOM) || defined(HAVE_RAND)) && (defined(HAVE_SRANDOM) || defined(HAVE_SRAND)))
printf("ERROR: No random or srandom routine!\n");
exit(1);
#endif
exit(0);
}