source: projects/initscripts/tags/initscripts-8.91.3/src/doexec.c @ 1108

Revision 1108, 852 bytes checked in by daisuke, 13 years ago (diff)

import initscripts-8.90.6 from internal cvs repository

Line 
1/*
2 * Copyright (c) 1997-1999 Red Hat, Inc. All rights reserved.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2,
6 * as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
16 */
17
18#include <unistd.h>
19
20int main(int argc, char ** argv) {
21    if (argc<2) return 1;
22    execvp(argv[1], argv + 2);
23    return 1;
24}
Note: See TracBrowser for help on using the repository browser.