summaryrefslogtreecommitdiff
path: root/userspace/cat.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-10-15 16:29:50 +0200
committerMiguel <m.i@gmx.at>2018-10-15 16:29:50 +0200
commite3a8099343aac9d94f411638ad84632d4b620132 (patch)
treef0a1f73ab106c17b25fd8a5264a66b6b48e55e48 /userspace/cat.c
parentf35d2124c36f8d39a953b76620e081b79c2faffd (diff)
cleanup sys/ etc
Diffstat (limited to 'userspace/cat.c')
-rw-r--r--userspace/cat.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/userspace/cat.c b/userspace/cat.c
index 41768ea..c7414b8 100644
--- a/userspace/cat.c
+++ b/userspace/cat.c
@@ -10,22 +10,7 @@ int main(int argc, char **argv)
FILE *out=stdout;
// In case a Filename was supplied
- if(argc>1){
- char buf[256];
-
- // Relative Path
- if(argv[1][0]!='/')
- {
- sprintf(buf,"%s/%s",getenv("PWD"),argv[1]);
- in=fopen(buf,"r");
- }
-
- // Absolute Path
- else
- {
- in=fopen(argv[1],"r");
- }
- }
+ if(argc>1) in=fopen(argv[1],"r");
char buf[256];