1
0
mirror of https://github.com/axllent/mailpit.git synced 2024-12-26 22:56:43 +02:00

Chore: Make symlink detection more specific to contain "sendmail" in the name (#391)

This commit is contained in:
Faster IT 2024-11-22 04:52:20 +01:00 committed by GitHub
parent bc23e6336d
commit 5666462f29
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,10 +16,11 @@ func main() {
} }
// running directly // running directly
if normalize(filepath.Base(exec)) == normalize(filepath.Base(os.Args[0])) { if normalize(filepath.Base(exec)) == normalize(filepath.Base(os.Args[0])) ||
! strings.Contains(filepath.Base(os.Args[0]), "sendmail") {
cmd.Execute() cmd.Execute()
} else { } else {
// symlinked // symlinked as "*sendmail*"
sendmail.Run() sendmail.Run()
} }
} }