This repository was archived by the owner on May 17, 2019. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /*
2-
3- Gets hostname upon call
4-
5- */
6-
71#include <stdio.h>
82#include <stdlib.h>
93#include "../../Src/globals.h"
Original file line number Diff line number Diff line change 11#include <stdio.h>
22#include <string.h>
33#include <stdlib.h>
4- #include <limits.h> /* PATH_MAX */
4+ #include <limits.h>
55#include "../../Src/globals.h"
66
77int main (int argc , char * * argv ){
Original file line number Diff line number Diff line change 1- /* Remove a directory full or not */
2-
31#include <stdio.h>
42#include <stdlib.h>
53#include <unistd.h>
Original file line number Diff line number Diff line change 1- /*
2-
3- Display local time of system
4-
5- */
6-
7-
81#include <stdio.h>
92#include <time.h>
103
Original file line number Diff line number Diff line change 4343//#define USER_LOG "nLogs/user.log"
4444
4545//Default path to command Bin
46- #define CMD_BIN "/etc /Restricted-Shell/Bin/"
46+ #define CMD_BIN "/home/nerdofcode /Restricted-Shell/Bin/"
4747
4848#define TRUE 1
4949#define FALSE 0
Original file line number Diff line number Diff line change @@ -146,15 +146,15 @@ then
146146
147147 clear
148148
149- read -p " Enter Default Directory for Shell(Default: '/home/nerdocode /Restricted-Shell/): " location
149+ read -p " Enter Default Directory for Shell(Default: '/etc /Restricted-Shell/): " location
150150
151151 if [[ -z $location ]]
152152 then
153- location=" /home/nerdocode /Restricted-Shell/"
153+ location=" /etc /Restricted-Shell/"
154154 else
155- sed -i " s|/home/nerdocode/Restricted-Shell/ |${location} |g" Src/global_bash_var
156- sed -i " s|/home/nerdocode/Restricted-Shell/ |${location} |g" Src/globals.h
157- sed -i " s|/home/nerdocode/Restricted-Shell/ |${location} |g" run.sh
155+ sed -i " s|${DEFAULT_LOCATION} |${location} |g" run.sh
156+ sed -i " s|${DEFAULT_LOCATION} |${location} |g" Src/globals.h
157+ sed -i " s|${DEFAULT_LOCATION} |${location} |g" Src/global_bash_var
158158 fi
159159
160160 # Prompt user to allow what commands
You can’t perform that action at this time.
0 commit comments