From 058c3bb923c51ef3f1b4b6d698bea2b1220bdd10 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 23 Mar 2011 10:25:01 +1100 Subject: [PATCH] fault: moved s3 fault.c to top level --- {source3/lib => lib/util}/fault.c | 11 +++++------ source3/Makefile.in | 2 +- source3/wscript_build | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) rename {source3/lib => lib/util}/fault.c (99%) diff --git a/source3/lib/fault.c b/lib/util/fault.c similarity index 99% rename from source3/lib/fault.c rename to lib/util/fault.c index 8bb202086ed..2ffd5dbd6d1 100644 --- a/source3/lib/fault.c +++ b/lib/util/fault.c @@ -1,19 +1,19 @@ -/* +/* Unix SMB/CIFS implementation. Critical Fault handling Copyright (C) Andrew Tridgell 1992-1998 Copyright (C) Tim Prouty 2009 - + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. - + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with this program. If not, see . */ @@ -47,7 +47,7 @@ static void fault_report(int sig) DEBUG(0,("\nPlease read the Trouble-Shooting section of the Samba3-HOWTO\n")); DEBUG(0,("\nFrom: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf\n")); DEBUGSEP(0); - + smb_panic("internal error"); /* smb_panic() never returns, so this is really redundent */ @@ -378,4 +378,3 @@ void dump_core_setup(const char *progname) exit(1); #endif /* DUMP_CORE */ } - diff --git a/source3/Makefile.in b/source3/Makefile.in index 05f1ccd8d40..7ba8332eb0a 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -442,7 +442,7 @@ LIB_OBJ = $(LIBSAMBAUTIL_OBJ) $(UTIL_OBJ) $(CRYPTO_OBJ) \ lib/util_transfer_file.o ../lib/async_req/async_sock.o \ lib/addrchange.o \ $(TDB_LIB_OBJ) \ - $(VERSION_OBJ) lib/charcnv.o ../lib/util/debug.o ../lib/util/debug_s3.o lib/fault.o \ + $(VERSION_OBJ) lib/charcnv.o ../lib/util/debug.o ../lib/util/debug_s3.o ../lib/util/fault.o \ lib/interface.o lib/pidfile.o \ lib/system.o lib/sendfile.o lib/recvfile.o lib/time.o \ lib/username.o \ diff --git a/source3/wscript_build b/source3/wscript_build index e02593d6540..fd9e4f488b7 100755 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -69,7 +69,7 @@ LIB_SRC = ''' lib/util_transfer_file.c lib/addrchange.c ${TDB_LIB_SRC} - ../lib/util/debug_s3.c lib/fault.c + ../lib/util/debug_s3.c ../lib/util/fault.c lib/interface.c lib/pidfile.c lib/system.c lib/sendfile.c lib/recvfile.c lib/time.c lib/username.c -- 2.34.1