im an idiot

This commit is contained in:
qorg11 2020-11-28 22:31:01 +01:00
parent 36f49ec406
commit 609309e146
No known key found for this signature in database
GPG Key ID: 343FC20A4ACA62B9
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ cat(int fd, const char *filename)
{
int c;
char buf[8192];
if (filename[0] == '-')
if (filename[0] == '-' && filename[1] != 'u')
fd = 0;
if(fd != 0)