Annotation of researchv10no/cmd/basic/bite/src/sysls.c, revision 1.1

1.1     ! root        1: /* Copyright Bell Telephone Laboratories Whippany, N.J.
        !             2: 
        !             3:  *     /////////////////////////////////////
        !             4:  *     /////////////////////////////////////
        !             5:  *     ////////////// sysls.c //////////////
        !             6:  *     /// J. P. Hawkins WH X4610 8C-001 ///
        !             7:  *     ///// Wed May  6 17:25:53 1981 //////
        !             8:  *     /////////////////////////////////////
        !             9:  *     /////////////////////////////////////
        !            10:  *     @(#) sysls.c: V1.1 6/17/81
        !            11:  * ls command for restricted use
        !            12: 
        !            13: */
        !            14: 
        !            15: #include       "bas.h"
        !            16: 
        !            17: sysls()
        !            18: {
        !            19:        char    cmdlin[80];
        !            20: 
        !            21:        cmdlin[0] = '\0';
        !            22:        strcat(cmdlin,"ls ");
        !            23:        strcat(cmdlin,expr);
        !            24:        if(chksec(cmdlin) < 0)  /* check for security violating chars */
        !            25:                return(-1);
        !            26:        callsys(cmdlin);
        !            27:        return(0);
        !            28: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.