aboutsummaryrefslogtreecommitdiff
blob: 990cd33057ecd330a8c3725755b5ac2b6c8c0f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * utility funcs
 *
 * Copyright 2005-2018 Gentoo Foundation
 * Distributed under the terms of the GNU General Public License v2
 */

#include <unistd.h>

static void
xchdir(const char *path)
{
	if (unlikely(chdir(path) != 0))
		errp("chdir(%s) failed", path);
}