aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-03-07 17:50:07 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2009-03-07 17:50:54 +0200
commit164ff85d895bceeccc1c0b5e8cede69c47962c9f (patch)
tree1ad78f30f8331b2d1e0e328d9a503f2d88610fc6 /src
parent4d17530cad0a5960764379649af4f686d4b08f47 (diff)
downloadcpio-164ff85d895bceeccc1c0b5e8cede69c47962c9f.tar.gz
cpio-164ff85d895bceeccc1c0b5e8cede69c47962c9f.tar.bz2
Refelect changes to paxutils
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am7
-rw-r--r--src/fatal.c27
2 files changed, 31 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 1e8af7f..1b44d39 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -16,7 +16,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
# 02110-1301 USA.
-INCLUDES=-I. -I.. -I$(top_srcdir)/gnu -I$(top_builddir)/gnu -I$(top_srcdir)/paxlib
+INCLUDES=-I. -I.. -I$(top_srcdir)/gnu -I$(top_builddir)/gnu -I$(top_srcdir)/lib
bin_PROGRAMS=cpio @CPIO_MT_PROG@
EXTRA_PROGRAMS=mt
@@ -28,6 +28,7 @@ cpio_SOURCES = \
defer.c\
dstring.c\
global.c\
+ fatal.c\
main.c\
tar.c\
util.c\
@@ -47,6 +48,6 @@ noinst_HEADERS =\
filetypes.h\
safe-stat.h
-LDADD=../paxlib/libpax.a ../gnu/libgnu.a @INTLLIBS@
+LDADD=../lib/libpax.a ../gnu/libgnu.a @INTLLIBS@
-mt.o main.o: ../paxlib/rmt-command.h
+mt.o main.o: ../lib/rmt-command.h
diff --git a/src/fatal.c b/src/fatal.c
new file mode 100644
index 0000000..4cbf21e
--- /dev/null
+++ b/src/fatal.c
@@ -0,0 +1,27 @@
+/* This file is part of GNU cpio.
+ Copyright (C) 2005, 2007 Free Software Foundation, Inc.
+
+ 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, 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, write to the Free
+ Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301 USA. */
+
+#include <system.h>
+#include <paxlib.h>
+
+void
+fatal_exit ()
+{
+ exit (PAXEXIT_FAILURE);
+}
+

Return to:

Send suggestions and report system problems to the System administrator.