diff options
author | Ian Moffett <ian@osmora.org> | 2024-05-24 12:22:48 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-05-24 12:22:48 -0400 |
commit | 9a6d04290806afec59c988419cdac0fdbe4509ff (patch) | |
tree | 4ab41969fd5d0be78adf87b68556635416f32dbf /usr.sbin/init | |
parent | 9c8b7aea1e3f941134689aca546f6cb0c6b659fd (diff) |
init: mshell: Remove useless length check
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'usr.sbin/init')
-rw-r--r-- | usr.sbin/init/mshell.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.sbin/init/mshell.c b/usr.sbin/init/mshell.c index 38ea003..3cfbb65 100644 --- a/usr.sbin/init/mshell.c +++ b/usr.sbin/init/mshell.c @@ -77,9 +77,6 @@ print_file(const char *path) } len = read(fd, buf, sizeof(buf)); - if (len > MAX_FILE_SIZE) { - len = MAX_FILE_SIZE - 1; - } if (len > 0) { buf[len] = '\0'; |