summaryrefslogtreecommitdiffstats
path: root/bin/ed
Commit message (Collapse)AuthorAgeFilesLines
* MFC r309873:pfg2016-12-263-4/+4
| | | | | | | ed(1): Prevent possible overflows during allocation. Make sure the parameters used for malloc(3) can hold size_t sizes. This should help ed(1) handle bigger data in the future.
* MFC r306581:sevan2016-10-101-2/+2
| | | | | | | | Use .At macro instead of specifying AT&T UNIX literaly. PR: 212034 Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D8114
* Close the input FILE * in read_file() and the output FILE * in write_file()truckman2016-05-251-9/+18
| | | | | | | | | | if read_stream() or write_stream() fails to avoid leaking the FILE. Reported by: Coverity CID: 977702 Reviewed by: pfg MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D6554
* ed(1): simplify by using arc4random_buf().pfg2016-05-211-4/+1
| | | | Suggested by: ed
* ed(1): Cleanups for the DES mode.pfg2016-05-201-2/+2
| | | | | | | | | - Use arc4random_uniform(3). - Prevent a segmentation fault when ed receives a signal while being in getpass(). [1] Obtained from: OpenBSD [1] (CVS Rev. 1.15) MFC after: 2 weeks
* ed(1): switch two statements so we check the index before dereferencing.pfg2016-04-261-1/+1
| | | | | | This is related to r270256 but was missed in that occasion. MFC after: 3 days
* Explicitly add unmarked bin/ binaries to the runtime package.gjb2016-02-091-0/+1
| | | | | | | | Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate package, which requires pre-install/post-install scripts, to be added later. Sponsored by: The FreeBSD Foundation
* ed(1): Prevent possible string overflowspfg2015-12-181-4/+4
| | | | | | | | Use strlcpy instead of strncpy to guarantee NULL termination. Pointed out by: imp CID: 1007252 X-MFC with: r292454
* ed(1): Prevent possible string overflowspfg2015-12-181-4/+6
| | | | | CID: 1007252 MFC after: 2 weeks
* Add META_MODE support.sjg2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | 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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-273-5/+4
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-191-1/+1
| |\
| * \ Merge head from 7/28sjg2014-08-191-3/+1
| |\ \
| * | | Updated dependenciessjg2014-05-161-0/+1
| | | |
| * | | Merge from headsjg2014-05-081-1/+1
| |\ \ \
| * \ \ \ Merge from headsjg2013-09-052-3/+3
| |\ \ \ \
| * \ \ \ \ sync from headsjg2013-04-121-3/+1
| |\ \ \ \ \
| * | | | | | Updated dependenciessjg2013-03-111-0/+1
| | | | | | |
| * | | | | | Updated dependenciessjg2013-02-161-2/+0
| | | | | | |
| | | | | | |
| | \ \ \ \ \
| *-. \ \ \ \ \ Sync from headsjg2012-11-049-63/+51
| |\ \ \ \ \ \ \
| * | | | | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-221-0/+20
| | |/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | | | | | mdoc: escape Rebapt2015-04-261-1/+1
| | | | | | | |
* | | | | | | | ed(1): Fix [-Werror=logical-not-parentheses]eadler2015-04-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /usr/src/bin/ed/glbl.c:64:36: error: logical not is only applied to theleft hand side of comparison [-Werror=logical-not-parentheses] Obtained from: Dragonfly (1fff89cbaeaa43af720a1f23d9c466b756dd8a58) MFC After: 1 month
* | | | | | | | bin/ed: use correct type in multiplicationeadler2015-04-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The result is line_t** so the multiplication should be size * sizeof(line_t*) MFC After: 1 month
* | | | | | | | Convert bin/ to LIBADD, reduce overlinking allow to build all components asbapt2014-11-251-2/+1
| |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | static
* | | | | | | Always check the limits of array index variables before using them.pfg2014-08-211-1/+1
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Obtained from: DragonFlyBSD MFC after: 1 week
* | | | | | When building picobsd, define WITHOUT_OPENSSL and WITHOUT_KERBEROS andimp2014-06-061-3/+1
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | remove the now-redundant checks for RELEASE_CRUNCH. This originally was defined for building smaller sysinstall images, but was later also used by picobsd builds for a similar purpose. Now that we've moved away from sysinstall, picobsd is the only remaining consumer of this interface. Adding these two options reduces the RELEASE_CRUNCH special cases in the tree by half.
* | | | | Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| |_|_|/ |/| | | | | | | | | | | from the latter.
* | | | Fix a -Wunsequenced warning.kientzle2013-06-291-1/+1
| | | | | | | | | | | | | | | | Submitted by: dt71@gmx.com
* | | | mdoc sweep.joel2013-05-121-2/+2
| |_|/ |/| |
* | | Fix compiling ed w/ WITHOUT_ED_CRYPTO... These variables aren'tjmg2013-03-231-3/+1
| |/ |/| | | | | | | | | used.. Submitted by: deeptech71 at gmail dot com
* | More -Wmissing-variable-declarations fixes.ed2012-10-194-15/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* | Fix warnings found by -Wmising-variable-declarations.ed2012-10-197-48/+45
|/ | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible.
* Add build option MK_ED_CRYPTO to control whether ed(1) is to have themarcel2012-05-191-3/+3
| | | | | | | ability to encrypt/decrypt files. Embedded systems can typically have OpenSSL, but not for ed(1) to use it. Obtained from: Juniper Networks, Inc.
* Fix some obtuse fprintf tricks in bin/ed.dim2011-12-162-18/+20
| | | | MFC after: 1 week
* Fix memory leaks in error cases.brueffer2011-08-271-0/+3
| | | | | | | PR: 159011 Submitted by: Henning Petersen <henning.petersen@t-online.de> Approved by: re (kib) MFC after: 1 week
* Fix some typos under bin/uqs2011-05-221-2/+2
| | | | Found by: codespell
* Fix typos.brucec2011-02-121-2/+2
| | | | | | PR: docs/131625 Submitted by: Andrew Wright <andrew at qemg.org> MFC after: 1 month
* ed(1): make WARNS=6 cleanuqs2010-03-042-7/+1
| | | | | | | | Although argc and argv are never read after the longjmp is complete, gcc is not clever enough to see that and needlessly warns about it. So add volatile to silence the compiler. Approved by: ed (the co-mentor, not ed(1))
* Move WARNS as ed(1) also is only WARNS = 2 clean in the !DES case.marius2007-12-091-1/+1
| | | | | | | | | This fixes its compilation if MK_OPENSSL == no and also obsoletes release/Makefile rev. 1.192. The latter isn't reverted though as support for the fixit floppy and the rest of the boot floppies is scheduled to be deorbited anyway. Discussed with: kensmith
* Don't include encryption features of ed(1) when building for thekensmith2007-07-021-0/+2
| | | | | | | "rescue media" bundled with releases. Suggested by: ru Approved by: re (hrs)
* while(0); -> while (0) in multiline macroimp2006-08-171-1/+1
|
* Reimplementation of world/kernel build options. For details, see:ru2006-03-171-1/+3
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Sync program's usage() with manpage's SYNOPSIS.ru2005-02-091-2/+2
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-33/+33
| | | | Sort standard sections in the (documented) preferred order.
* no need to have break; after return;charnier2005-01-161-1/+1
|
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-1/+1
|
* NOCRYPT -> NO_CRYPTru2004-12-211-1/+1
|
* Join the 21st century: Cryptography is no longer an optional componentcperciva2004-08-061-1/+0
| | | | | | | | | | of releases. The -DNOCRYPT build option still exists for anyone who really wants to build non-cryptographic binaries, but the "crypto" release distribution is now part of "base", and anyone installing from a release will get cryptographic binaries. Approved by: re (scottl), markm Discussed on: freebsd-current, in late April 2004
OpenPOWER on IntegriCloud