File: dialin.monitor.wrap.c

package info (click to toggle)
mon 1.2.0-9
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,860 kB
  • ctags: 538
  • sloc: perl: 15,847; ansic: 774; sh: 330; makefile: 46
file content (29 lines) | stat: -rw-r--r-- 620 bytes parent folder | download | duplicates (8)
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
27
28
29
/*
 * setgid wrapper for use with dialin.monitor. Required for
 * UUCP locking permissions in /var/lock.
 *
 * cc -o dialin.monitor.wrap dialin.monitor.wrap.c
 * chown root dialin.monitor.wrap
 * chgrp uucp  dialin.monitor.wrap
 * chmod 02555 dialin.monitor.wrap
 *
 * $Id: dialin.monitor.wrap.c,v 1.2 2004/11/15 14:45:18 vitroth Exp $
 *
*/

#include <unistd.h>

#ifndef REAL_DIALIN_MONITOR
#define REAL_DIALIN_MONITOR "/usr/lib/mon/mon.d/dialin.monitor"
#endif

int
main (int argc, char *argv[])
{
    char *real_img = REAL_DIALIN_MONITOR;

    argv[0] = real_img;

    /* exec */
    return execv (real_img, argv);
}