|
|
1.1 root 1:
2: /* Copyright Bell Telephone Laboratories Whippany, N.J.
3:
4: * /////////////////////////////////////
5: * /////////////////////////////////////
6: * ////////////// sysrm.c //////////////
7: * /// J. P. Hawkins WH X4610 8C-001 ///
8: * ///// Wed May 6 17:25:53 1981 //////
9: * /////////////////////////////////////
10: * /////////////////////////////////////
11: * @(#) sysrm.c: V1.1 6/17/81
12: * rm command for restricted use
13:
14: */
15:
16: #include "bas.h"
17:
18: sysrm()
19: {
20: char cmdlin[80];
21:
22: cmdlin[0] = '\0';
23: strcat(cmdlin,"rm ");
24: strcat(cmdlin,expr);
25: if(chksec(cmdlin) < 0) /* check for security violating chars */
26: return(-1);
27: callsys(cmdlin);
28: return(0);
29: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.