aboutsummaryrefslogtreecommitdiff
blob: 375282c0688591653851f8fbff63154a302ac65e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * get_sandbox_lib.c
 *
 * Util functions.
 *
 * Copyright 1999-2008 Gentoo Foundation
 * Licensed under the GPL-2
 *
 * Some parts might have Copyright:
 *   Copyright (C) 2002 Brad House <brad@mainstreetsoftworks.com>
 */

#include <errno.h>
#include <stdio.h>

#include "sbutil.h"

void get_sandbox_lib(char *path)
{
	save_errno();
	snprintf(path, SB_PATH_MAX, "%s/%s", LIBSANDBOX_PATH, LIB_NAME);
	if (!rc_file_exists(path)) {
		snprintf(path, SB_PATH_MAX, "%s", LIB_NAME);
	}
	restore_errno();
}