This website works better with JavaScript.
Home
Explore
lain.church
Help
Register
Sign In
izaya
/
collapseos
mirror of
https://github.com/hsoft/collapseos.git
Watch
1
Star
1
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
tools/exec: fix segfault
master
Virgil Dupras
3 years ago
parent
959382c079
commit
631e7f1008
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
tools/exec.c
+ 4
- 0
tools/exec.c
View File
@@ -19,6 +19,10 @@ int main(int argc, char **argv)
FILE *fp = stdin;
if (strcmp(argv[2], "-") != 0) {
fp = fopen(argv[2], "r");
if (fp == NULL) {
fprintf(stderr, "Could not open %s\n", argv[2]);
return 1;
}
}
int fd = ttyopen(argv[1]);
if (fd < 0) {
Write
Preview
Loading…
Cancel
Save