unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Timmy Douglas via Bug reports for GNU Guix <bug-guix@gnu.org>
To: nathan_mail@nborghese.com, 53547@debbugs.gnu.org
Subject: bug#53547: Error sending email with OpenSMTPD, fatal: time_to_text: bsnprintf
Date: Wed, 22 Nov 2023 16:03:40 -0800	[thread overview]
Message-ID: <87h6ld9vz7.fsf@timmydouglas.com> (raw)
In-Reply-To: <87r0khis2j.fsf@nborghese.com>

Nathan <nathan_mail@nborghese.com> writes:

> I don't have this problem on my server.
>
> I looked at your github issue page.
> Those macros are defined by the `configure' script.
> I can see that guix's `configure' output defines HAVE_STRUCT_TM_TM_GMTOFF in config.h.
> (if neither of the #if match, then the `tz' pointer is likely garbage and the program will crash.)
>
> A problem with your time zone configuration seems like a reasonable guess.
> I'd check it with a simple C program like the one attached.

your app prints my timezone as expected. if you run something like this
does it work for you?

cat << EOF | /run/setuid-programs/sendmail $(whoami)
To: $(whoami)
Subject: test


blah
EOF

for me, it prints:

sendmail: time_to_text: bsnprintf


my config.scm:


(operating-system
  ...
  (setuid-programs
   (append (list (setuid-program
                  (program (file-append opensmtpd "/sbin/smtpctl"))
		 (setuid? #f)
		 (setgid? #t)
		 (user "root")
		 (group "smtpq"))
		(setuid-program
                  (program (file-append opensmtpd "/sbin/sendmail"))
		 (setuid? #f)
		 (setgid? #t)
		 (user "root")
		 (group "smtpq")))
           %setuid-programs))




  reply	other threads:[~2023-11-23  0:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-26  5:51 bug#53547: Error sending email with OpenSMTPD, fatal: time_to_text: bsnprintf Timmy Douglas via Bug reports for GNU Guix
2023-11-21  7:09 ` Timmy Douglas via Bug reports for GNU Guix
2023-11-22 17:57   ` Nathan via Bug reports for GNU Guix
2023-11-23  0:03     ` Timmy Douglas via Bug reports for GNU Guix [this message]
     [not found]   ` <87plzq7zwa.fsf@nckx>
2023-12-02  5:15     ` Timmy Douglas via Bug reports for GNU Guix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h6ld9vz7.fsf@timmydouglas.com \
    --to=bug-guix@gnu.org \
    --cc=53547@debbugs.gnu.org \
    --cc=mail@timmydouglas.com \
    --cc=nathan_mail@nborghese.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).