Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion labels/startupchecks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ startup_checks:
jne .check_port ; if != 1, its ok

; if its 1, it means that we failed to open the file
LOG_WARNING str_str_file_not_opened, str_str_file_not_opened_len
LOG_WARNING str_log_file_not_opened, str_log_file_not_opened_len

.check_port:
mov eax, [rel current_uid]
Expand Down
4 changes: 2 additions & 2 deletions labels/strings.asm
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ section .text
str_check_port_privileged db "Port < 1024 might require root privileges", 0
str_check_port_privileged_len equ $ - str_check_port_privileged - 1

str_str_file_not_opened db "Failed to open the provided log file (missing permissions?). STDOUT will be used instead.", 0
str_str_file_not_opened_len equ $ - str_str_file_not_opened - 1
str_log_file_not_opened db "Failed to open the provided log file (missing permissions?). STDOUT will be used instead.", 0
str_log_file_not_opened_len equ $ - str_log_file_not_opened - 1

str_chroot_noroot db "Not able to chroot since we're not root", 0
str_chroot_noroot_len equ $ - str_chroot_noroot - 1
Expand Down
2 changes: 1 addition & 1 deletion program.asm
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ _start:
mov [rel username], al ; clear the username field to not send a wrong username in logs

lea r13, [rel response]
lea r12, [rel rel response]
lea r12, [rel response]
mov qword [rel file_to_serve], errordoc_401_path

mov rdi, 401
Expand Down
Loading