Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Commit 0c3c0bb

Browse files
author
NerdOfCode
committed
CentOS 7.5 is now supported
1 parent 910ed24 commit 0c3c0bb

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ all: shell commands
33
shell:
44
rm -f Src/shell~
55

6-
gcc -o Src/shell Src/shell.c
6+
gcc -std=gnu11 -o Src/shell Src/shell.c
77

88
commands:
99

Src/globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
//#define USER_LOG "nLogs/user.log"
6565

6666
//Default path to command Bin
67-
#define CMD_BIN "/home/nerdofcode/Restricted-Shell/Bin/"
67+
#define CMD_BIN DEFAULT_LOCATION"Bin/"
6868

6969
#define TRUE 1
7070
#define FALSE 0

Src/shell.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@
3434
3535
*/
3636

37-
3837
#include <stdio.h>
3938
#include <string.h>
4039
#include <stdlib.h>
4140
#include <ctype.h>
4241
#include <unistd.h> //Access
4342
#include <sys/types.h>
4443
#include <sys/stat.h>
44+
#include <sys/wait.h>
45+
#include <sys/types.h>
4546
#include "globals.h"
4647

48+
4749
//make our own version of 'bool'
4850
typedef int bool;
4951

0 commit comments

Comments
 (0)