diff --git a/labels/startupchecks.asm b/labels/startupchecks.asm index 2593fe0..63947a5 100644 --- a/labels/startupchecks.asm +++ b/labels/startupchecks.asm @@ -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] diff --git a/labels/strings.asm b/labels/strings.asm index c79f11d..92eebc5 100644 --- a/labels/strings.asm +++ b/labels/strings.asm @@ -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 diff --git a/program.asm b/program.asm index 6504a70..b361326 100644 --- a/program.asm +++ b/program.asm @@ -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