summaryrefslogtreecommitdiffstats
path: root/src/doexec.c
blob: 1b045326366af8f49534b49c6311c5f984fc8060 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
 * Copyright (c) 1997-1999 Red Hat, Inc. All rights reserved.
 *
 * This software may be freely redistributed under the terms of the GNU
 * public license.
 *
 * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#include <unistd.h>

int main(int argc, char ** argv) {
    if (argc<2) return 1;
    execvp(argv[1], argv + 2);
    return 1;
}