From fe1f70d5f729e331facf481ec45cc1c64e095d85 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 23 Feb 2015 23:28:58 +0000 Subject: Add s6-hiercopy (based on skalibs) Version: rc for 2.0.2.0 --- src/skaembutils/deps-exe/s6-hiercopy | 1 + src/skaembutils/s6-hiercopy.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/skaembutils/deps-exe/s6-hiercopy create mode 100644 src/skaembutils/s6-hiercopy.c (limited to 'src/skaembutils') diff --git a/src/skaembutils/deps-exe/s6-hiercopy b/src/skaembutils/deps-exe/s6-hiercopy new file mode 100644 index 0000000..e7187fe --- /dev/null +++ b/src/skaembutils/deps-exe/s6-hiercopy @@ -0,0 +1 @@ +-lskarnet diff --git a/src/skaembutils/s6-hiercopy.c b/src/skaembutils/s6-hiercopy.c new file mode 100644 index 0000000..9ba3fd5 --- /dev/null +++ b/src/skaembutils/s6-hiercopy.c @@ -0,0 +1,17 @@ +/* ISC license. */ + +#include +#include +#include + +#define USAGE "s6-hiercopy src dst" + +int main (int argc, char const *const *argv) +{ + PROG = "s6-hiercopy" ; + if (argc < 3) strerr_dieusage(100, USAGE) ; + umask(0) ; + if (!hiercopy(argv[1], argv[2])) + strerr_diefu4sys(111, "copy hierarchy from ", argv[1], " to ", argv[2]) ; + return 0 ; +} -- cgit v1.2.3