]>
git.ipfire.org Git - people/ms/strongswan.git/blob - programs/starter/exec.c
1 /* strongSwan IPsec exec helper function
2 * Copyright (C) 2001-2002 Mathieu Lafon - Arkoon Network Security
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the
6 * Free Software Foundation; either version 2 of the License, or (at your
7 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * RCSID $Id: exec.c,v 1.4 2006/01/04 23:30:24 as Exp $
24 #include "../pluto/constants.h"
25 #include "../pluto/defs.h"
26 #include "../pluto/log.h"
34 * o log stdout with LOG_LEVEL_INFO and stderr with LOG_LEVEL_ERR
38 starter_exec(const char *fmt
, ...)
41 static char buf
[BUF_SIZE
];
45 vsnprintf(buf
, BUF_SIZE
-1, fmt
, args
);
46 buf
[BUF_SIZE
- 1] = '\0';
50 DBG_log("starter_exec(%s) = %d", buf
, r
)