-
Notifications
You must be signed in to change notification settings - Fork 70
Expand file tree
/
Copy pathprint-cmd-wrapper.c
More file actions
34 lines (25 loc) · 847 Bytes
/
print-cmd-wrapper.c
File metadata and controls
34 lines (25 loc) · 847 Bytes
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
30
31
32
33
34
#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
#include <signal.h>
#include <strings.h>
#include <stdlib.h>
/********************************************
* Wrapper - Secure Yourself *
* *
* 2007 - Mike Golvach - eggi@comcast.net *
* *
* Usage: cmd-wrapper [pre|post] *
* *
********************************************/
/* Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License */
/* Define global variables */
int gid;
/* main(int argc, char **argv) - main process loop */
int main(int argc, char **argv, char **envp)
{
char *origcmd;
origcmd = getenv("SSH_ORIGINAL_COMMAND");
printf ("Original Command:%s\n", origcmd);
exit(0);
}