summaryrefslogtreecommitdiff
path: root/usr.bin/mail
Commit message (Collapse)AuthorAgeFilesLines
* Replace literal uses of /usr/local in C sources with _PATH_LOCALBASEStefan Eßer2020-10-271-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Literal references to /usr/local exist in a large number of files in the FreeBSD base system. Many are in contributed software, in configuration files, or in the documentation, but 19 uses have been identified in C source files or headers outside the contrib and sys/contrib directories. This commit makes it possible to set _PATH_LOCALBASE in paths.h to use a different prefix for locally installed software. In order to avoid changes to openssh source files, LOCALBASE is passed to the build via Makefiles under src/secure. While _PATH_LOCALBASE could have been used here, there is precedent in the construction of the path used to a xauth program which depends on the LOCALBASE value passed on the compiler command line to select a non-default directory. This could be changed in a later commit to make the openssh build consistently use _PATH_LOCALBASE. It is considered out-of-scope for this commit. Reviewed by: imp MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D26942 Notes: svn path=/head/; revision=367075
* mail/gprof/tip: tap with the ugly stickKyle Evans2020-04-063-40/+85
| | | | | | | | | | | | | | | | | | The ugly stick here is this bit in the respective headers: #ifndef EXTERN #define EXTERN extern #endif with a follow-up #define EXTERN in a single .c file to push all of their definitions into one spot. A pass should be made over these three later to push these definitions into the correct files instead, but this will suffice for now and at a more leisurely pace. MFC after: 3 days Notes: svn path=/head/; revision=359680
* Move mail.rc install to usr.bin/mail.Brad Davis2018-09-181-0/+1
| | | | | | | | | | This leverages CONFS to do the install Approved by: re (blanket, pkgbase), bapt (mentor) Differential Revision: https://reviews.freebsd.org/D17216 Notes: svn path=/head/; revision=338757
* Switch the default pager for most commands to lessAlan Somers2018-08-083-4/+4
| | | | | | | | | | | | Finally, a pager for the nineties. MFC after: Never Relnotes: Yes Differential Revision: https://reviews.freebsd.org/D13465 Poll: https://reviews.freebsd.org/V7 Notes: svn path=/head/; revision=337497
* Replace send-mail with the more standarized sendmail, we do not createXin LI2017-12-271-1/+1
| | | | | | | | | links for send-mail in mailwrapper so it did not work anyway. MFC after: 2 weeks Notes: svn path=/head/; revision=327236
* Don't initialize lastlong before assigning it.Xin LI2017-12-271-1/+0
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=327235
* userland: Fix several typos and minor errorsEitan Adler2017-12-271-1/+1
| | | | | | | | | | | - duplicate words - typos - references to old versions of FreeBSD Reviewed by: imp, benno Notes: svn path=/head/; revision=327230
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2028-26/+82
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* mailaddr(7): wave goodbyeEitan Adler2017-11-111-7/+0
| | | | | | | | | | | | | | | | The information here is somewhere between ancient to obsolete. It refers to a time in the internet's history when manual routing was still useful, talks about UUCP as if its modern, and refers to documents which I had trouble tracking down. It seems unlikely that a manual page in this form would be useful, so just remove it. Reviewed By: imp, tsoome, bdrewery(?) Differential Revision: https://reviews.freebsd.org/D12924 Notes: svn path=/head/; revision=325702
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Renumber copyright clause 4Warner Losh2017-02-2829-29/+29
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* Remove useless Li macroBaptiste Daroussin2017-02-111-1/+1
| | | | | | | | Reported by: make manlint MFC after: 2 days Notes: svn path=/head/; revision=313672
* Don't reference NULL pointer.Xin LI2017-01-241-1/+3
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312683
* Always initialize 'c'.Xin LI2017-01-231-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312664
* When creating record file, use umask 077 instead of the default.Xin LI2017-01-231-1/+6
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=312663
* mail(1): Minor declaration updates.Pedro F. Giffuni2016-07-151-1/+1
| | | | | | | Missing from r302903. Notes: svn path=/head/; revision=302914
* mail(1): Avoid closing negative file descriptors.Pedro F. Giffuni2016-07-152-2/+6
| | | | | | | | CID: 1008105, 1008106 MFC after: 1 week Notes: svn path=/head/; revision=302911
* mail(1): Update more prototypes.Pedro F. Giffuni2016-07-156-96/+123
| | | | | | | | | | Also rename delete and undelete_messages to deletecmd and undeletecmd respectively in an attempt to sync with other BSDs. Obtained from: OpenBSD Notes: svn path=/head/; revision=302903
* mail(1): check for out of memory conditions when calling calloc(3).Pedro F. Giffuni2016-07-141-1/+2
| | | | | | | X-MFC with: r302771 Notes: svn path=/head/; revision=302845
* mail(1): Bring some fixes from other BSDs.Pedro F. Giffuni2016-07-141-9/+18
| | | | | | | | | Fix missing forked job changes from r302776 in wait_child(). Obtained from: NetBSD Notes: svn path=/head/; revision=302799
* mail(1): Bring some fixes from other BSDs.Pedro F. Giffuni2016-07-138-69/+99
| | | | | | | | | | | | - Use varargs properly - Use pid_t - Better handling of error conditions on forked jobs. - Some prototype and warning cleanups. Obtained from: NetBSD (some originaly from OpenBSD) Notes: svn path=/head/; revision=302776
* mail(1): check for out of memory conditions when calling calloc(3).Pedro F. Giffuni2016-07-131-3/+6
| | | | | | | | Suggested by: oshogbo MFC after: 3 days Notes: svn path=/head/; revision=302771
* Use _PATH_DEVNULL instead of hardcoding.Xin LI2016-07-111-2/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=302542
* mail(1): Fix a comment.Pedro F. Giffuni2016-07-111-1/+1
| | | | | | | Obtained from: NetBSD (CVS Rev 1.29) Notes: svn path=/head/; revision=302533
* mail(1): Invert calloc(3) argument order.Pedro F. Giffuni2016-07-102-3/+3
| | | | | | | | | calloc(3) is documented to have first a number and then a size. Obtained from: OpenBSD (through NetBSD) Notes: svn path=/head/; revision=302511
* Always return either a dynamically allocated string or NULL fromDon Lewis2016-05-131-2/+2
| | | | | | | | | | | | | expand(). Never return the name parameter, which could be a the buf[] buffer which is allocated on the stack by getdeadletter() and which would then be used after getdeadletter() has returned. Reported by: Coverity CID: 1199383 MFC after: 1 week Notes: svn path=/head/; revision=299591
* mail: Don't truncate mtime of mailbox to microseconds.Jilles Tjoelker2016-04-171-9/+9
| | | | Notes: svn path=/head/; revision=298157
* Fix naive use of ftell(3).Pedro F. Giffuni2016-02-161-1/+1
| | | | | | | Secure coding practices, FIO19-C. Notes: svn path=/head/; revision=295675
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+18
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge from head@274682Simon J. Gerraty2014-11-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2013-09-051-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ sync from headSimon J. Gerraty2013-04-121-2/+2
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync from headSimon J. Gerraty2012-11-041-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Add const to the copyright variableBaptiste Daroussin2015-06-062-2/+2
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bump WARNS to level 2 Notes: svn path=/head/; revision=284070
* | | | | Always check the limits of array index variables before using them.Pedro F. Giffuni2014-08-211-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: DragonFlyBSD MFC after: 1 week Notes: svn path=/head/; revision=270256
* | | | Remove unnecessary cast to pid_t.Kevin Lo2013-07-041-1/+1
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=252679
* | | Fix undefined behaviour in usr.bin/mail/util.c.Dimitry Andric2013-02-151-2/+2
| |/ |/| | | | | | | | | | | | | Reported by: deeptech71@gmail.com MFC after: 3 days Notes: svn path=/head/; revision=246860
* | Rework all non-contributed files that use `struct timezone'.Ed Schouten2012-09-011-1/+1
|/ | | | | | | | | | | | | | | | | This structure is not part of POSIX. According to POSIX, gettimeofday() has the following prototype: int gettimeofday(struct timeval *restrict tp, void *restrict tzp); Also, POSIX states that gettimeofday() shall return 0 (as long as tzp is not used). Remove dead error handling code. Also use NULL for a nul-pointer instead of integer 0. While there, change all pieces of code that only use tv_sec to use time(3), as this provides less overhead. Notes: svn path=/head/; revision=239991
* Fix likely race condition if wait_child() is interrupted by sigchild()Eitan Adler2012-05-301-1/+3
| | | | | | | | | | PR: bin/102834 Submitted by: Andreas Longwitz <longwitz@incore.de> Approved by: cperciva MFC after: 2 weeks Notes: svn path=/head/; revision=236286
* fgets(3) returns a pointer, so compare against NULL, not integer 0.Kevin Lo2012-01-131-1/+1
| | | | Notes: svn path=/head/; revision=230044
* Touch up some more small typos missed in the previous round.Ulrich Spörlein2012-01-052-2/+2
| | | | | | | Reported by: Ben Kaduk <minimarmot@gmail.com> et al. Notes: svn path=/head/; revision=229655
* Spelling fixes for usr.bin/Ulrich Spörlein2011-12-303-3/+3
| | | | Notes: svn path=/head/; revision=228992
* In usr.bin/mail/cmd1.c, use the correct printf length modifier for aDimitry Andric2011-12-172-2/+2
| | | | | | | | | ptrdiff_t. In usr.bin/mail/main.c, cast a field width to int. MFC after: 1 week Notes: svn path=/head/; revision=228647
* Replace __const by const in all non-contributed source code.Ed Schouten2011-12-132-2/+2
| | | | | | | | | As C1X is close to being released, there is no need to wrap around a feature that is already part of C90. Most of these files already use `const' in different placed as well. Notes: svn path=/head/; revision=228468