Package: bsd-mailx / 8.1.2-0.20180807cvs-1
Metadata
Package | Version | Patches format |
---|---|---|
bsd-mailx | 8.1.2-0.20180807cvs-1 | 3.0 (quilt) |
Patch series
view the series filePatch | File delta | Description |
---|---|---|
00 Makefiles.patch | (download) |
Makefile |
31 30 + 1 - 0 ! |
00 makefiles Fix makefiles to make it possible to compile mailx on non-BSD systems. |
01 Fix includes.patch | (download) |
def.h |
4 3 + 1 - 0 ! |
01 fix includes |
02 Base fixes 1.patch | (download) |
USD.doc/mail1.nr |
2 1 + 1 - 0 ! |
02 base fixes 1 Fixes from Debian patch 1:8.1.1-10 |
03 Base fixes 2.patch | (download) |
cmd1.c |
2 2 + 0 - 0 ! |
03 base fixes 2 Fixes from Debian patch 1:8.1.1-10.3 |
04 Add custom header.patch | (download) |
def.h |
1 1 + 0 - 0 ! |
04 add custom header Provide a possibility to add custom header fields such as "X-Loop: This service" or "X-Generated: via cron" (Closes: Bug#23356, Bug#13756). |
05 Mailx fixes.patch | (download) |
extern.h |
2 1 + 1 - 0 ! |
05 mailx fixes mailx (1:8.1.1-10.1.3) frozen unstable; urgency=high * More security fixes * Don't allow one to set interactive in mailrc (or interactively) * Modify the variable-handling code to grok NULL values -- Wichert Akkerman <wakkerma@debian.org> Mon, 7 Aug 2000 17:22:57 -0700 mailx (1:8.1.1-10.1.2) frozen unstable; urgency=high * Another security problem: refuse to get the interactive variable from the environment by explicitly setting it in the hashtable. -- Wichert Akkerman <wakkerma@debian.org> Mon, 7 Aug 2000 12:36:10 -0700 |
06 Use lockf instead of flock.patch | (download) |
quit.c |
2 1 + 1 - 0 ! |
06 use lockf instead of flock quit.c: Use lockf instead if flock. |
07 Initialize head struct.patch | (download) |
cmd2.c |
2 1 + 1 - 0 ! |
07 initialize head struct Initialize head struct and other fixes. |
08 Use liblockfile library.patch | (download) |
popen.c |
64 64 + 0 - 0 ! |
08 use liblockfile library Security fix: don't install mailx binary setgid mail. Now the liblockfile library is used for mailbox locking. |
09 Saved mbox message.patch | (download) |
quit.c |
4 2 + 2 - 0 ! |
09 saved mbox message Debian Bug#68920: Save message says mbox even when $MBOX is set |
10 Reply To header.patch | (download) |
cmd3.c |
9 9 + 0 - 0 ! |
10 reply-to header Applied some patches from FreeBSD: + Add Relpy-To header if REPLYTO environment variable is set. + Add In-Reply-To header for replies (closes: #23115). |
11 Showname option.patch | (download) |
aux.c |
9 7 + 2 - 0 ! |
11 showname option Debian Bug#96867: Dear mailx maintainer, I have written a patch that mimics the SunOS mailx "showname" option, that is, in the mail header listing the senders full name is shown instead of the e-mail address. I had to make the "skin" function aware of the reptype variable, and thus give a reptype value for each call of skin. Ugly but it seems to work. |
12 REPLYTO can be set in .mailrc too.patch | (download) |
cmd3.c |
4 2 + 2 - 0 ! |
12 replyto can be set in .mailrc too REPLYTO can be set in ~/.mailrc too. |
13 Mailx concatenates messages.patch | (download) |
edit.c |
18 18 + 0 - 0 ! |
13 mailx concatenates messages Debian Bug#71759 Check if there is still an empty line at the end of the edited message. If not, it adds one. |
14 Truncate mailbox instead of deleting it.patch | (download) |
fio.c |
8 8 + 0 - 0 ! |
14 truncate mailbox instead of deleting it fio.c: Don't delete mailbox file, always truncate it, because liblockfile fails to remove the lock file if mailbox doesn't exist (closes: #111537). quit.c: change message saing that mailbox was "removed" to "truncated" (closes: #196682); |
15 No space left in tmp.patch | (download) |
collect.c |
38 29 + 9 - 0 ! |
15 no space left in /tmp Debian Bug#37104 The problem reported here, i.e. a segmentation fault when reading mail is already corrected. The message "Message temporary file corrupted" is printed by a call to "errx" instead of "panic" as it was in mailx-8.1.1-10. *But* there is another problem[1]: mailx sends an empty mail when there is no space left in "/tmp". Here is a patch making mailx check if all is ok when writing new mail in temporary file. If not, it outputs an error message and no longer sends an empty mail. |
16 Stdin not a tty.patch | (download) |
tty.c |
4 4 + 0 - 0 ! |
16 stdin not a tty Return from grabh() if stdin is not a terminal. This fixes the `-I' option (closes: #149005). |
18 Wait for sendmail.patch | (download) |
popen.c |
12 9 + 3 - 0 ! |
18 wait for sendmail * send.c: Always wait for a sendmail process, check its exit code and if non-zero, print a warning message to user and save original message to ~/dead.letter (closes: #145379). * popen.c: Make wait_child() return an exit code of the child. |
19 Fix compilation on Hurd.patch | (download) |
def.h |
4 4 + 0 - 0 ! |
19 fix compilation on hurd Fix problem with building on Hurd (closes: #213929). |
20 Don t delete temporary file.patch | (download) |
edit.c |
17 16 + 1 - 0 ! |
20 don't delete temporary file If the external editor (called by ~e or ~v commands) fails for some reason, don't delete the temporary file if it has been modified. This partly fixes bug#148071. |
21 Use wordexpr instead of echo.patch | (download) |
fio.c |
58 53 + 5 - 0 ! |
21 use wordexpr instead of echo fio.c: Use wordexpr() instead of calling /bin/echo not to allow executing external commands while expanding shell variables and wildcards. |
22 Replace newlines with spaces.patch | (download) |
main.c |
6 6 + 0 - 0 ! |
22 replace newlines with spaces main.c: Replace with spaces any embedded newline passed in arguments for '-s' and '-a' options (closes: #419840). |
24 False cant send email errors.patch | (download) |
extern.h |
1 1 + 0 - 0 ! |
24 false cant send email errors Debian Bug #550116: This bug is caused by the patch in "send.c" for the bug report #145379. Under certain circumstances, a race condition can occur if: 1. The parent fork()'s a process and exec()'s "sendmail" in "send.c". The child process is born. 2. The child starts, finishes quickly and exits. The parent has not called wait_child(pid) in "send.c" yet. 3. The parent immediately gets SIGCHLD because the child exited already. The sigchild() handler in "popen.c" reaps the child via waitpid() and exits directly because findchild(pid, 1) returned NULL. It returned NULL because the PID of the child process has not been added to the "child" structure list at all. 4. The execution of the parent process is resumed in "send.c", and it now calls wait_child(pid). The function wait_child(pid) returns "-1" because wait_child(pid) in "popen.c" calls waitpid(pid, ...) again for the same child PID, which the sigchild() handler already reaped. The second call to findchild(pid, 1) by wait_child(pid) in "popen.c" returns NULL too, because as already stated the PID of the child process has not been added to the "child" structure list. As a result, the false error message "Can't send mail: sendmail process failed" is given. This bug happens only rarely, usually when the system is under load and the parent process lags a bit after the child one. But it does happen. We send about 15 messages every hour on 36 servers each, and we get 10 false error messages on average for 24 hours (0.08% false error rate). |
25 Fix confusing error.patch | (download) |
main.c |
2 1 + 1 - 0 ! |
25 fix confusing error Fix an error message shown when -s, -c, or -b is used without -t to be less confusing for users (closes: #327809, #781170). |
26 Add missing include.patch | (download) |
lex.c |
1 1 + 0 - 0 ! |
26 add missing include Add #include <bsd/err.h> to fix implicit declaration of function 'warnc' warning. |
27 Use FOPEN_MAX.patch | (download) |
aux.c |
4 2 + 2 - 0 ! |
27 use fopen_max Use FOPEN_MAX instead of OPEN_MAX, which is unavailable on Linux |
28 Fix gcc warning.patch | (download) |
lex.c |
4 4 + 0 - 0 ! |
28 fix gcc warning Fix the following warning: lex.c:128:2: warning: implicit declaration of function 'mkostemp' [-Wimplicit-function-declaration] |
29 Document two dashes separator.patch | (download) |
mail.1 |
9 9 + 0 - 0 ! |
29 document two dashes separator Document that `--' marks end of options and should be used in scripts taking addresses from untrusted sources (closes: #773317) |
30 Add missing includes.patch | (download) |
aux.c |
2 2 + 0 - 0 ! |
30 add missing includes Add includes for clock_gettime() and utimensat() calls introduced in 8.1.2-0.20160123cvs. |
31 Do not call pledge.patch | (download) |
main.c |
4 0 + 4 - 0 ! |
31 do not call pledge pledge(2) syscall is not available in Linux, so the change introduced by upstream in 8.1.2-0.20160123cvs. |
32 Fix FTBFS on Hurd.patch | (download) |
aux.c |
20 20 + 0 - 0 ! |
32 fix ftbfs on hurd Fallback to a previously version of alter() function if UTIME_OMIT is not defined (which happens most probably on Hurd only, see #762677). |
33 Add MIME headers.patch | (download) |
mail.1 |
28 27 + 1 - 0 ! |
add mime headers unless set by user Generate the three following headers by default: MIME-Version: 1.0 Content-Type: text/plain; charset="<current charset from $LC_CTYPE>" Content-Transfer-Encoding: 8bit However allow a user to override each of them with the -a flag. Example: bsd-mailx -a "Content-Type: text/html; charset=UTF-8" uses the above user-provided Content-Type, but still adds the default MIME-Version and Content-Transfer-Encoding headers. Bugs-Debian: https://bugs.debian.org/859935 |
34 Fix strnvis.patch | (download) |
cmd1.c |
4 2 + 2 - 0 ! |
fix calls to strnvis Define LIBBSD_NETBSD_VIS macro, and re-order arguments of strnvis calls to fix warnings caused by incompatibilities with future versions of libbsd, as documented in the following comment from /usr/include/bsd/vis.h: /* * NetBSD added an strnvis and unfortunately made it incompatible with the * existing one in OpenBSD and Freedesktop's libbsd (the former having existed * for over ten years). Despite this incompatibility being reported during * development (see http://gnats.netbsd.org/44977) they still shipped it. * Even more unfortunately FreeBSD and later MacOS picked up this incompatible * implementation. * * Provide both implementations and default for now on the historical one to * avoid breakage, we will switch to the NetBSD one in libbsd 0.10.0 or so. * Define LIBBSD_NETBSD_VIS to switch to the NetBSD one now. */ |
35 Fix new warnings and error.patch | (download) |
fio.c |
4 2 + 2 - 0 ! |
fix compilation issues Fix the following gcc issues: - disable code that references to ALTWERASE that is not defined on Debian; - use 'char' rather than 'unsigned char' to get rid of warnings about unsigned/signed conversions; - check result of snprintf calls to fix `output might be truncated' warnings. |