summaryrefslogtreecommitdiff
path: root/usr.bin/sdiff
AgeCommit message (Collapse)Author
2018-09-28Add unveil(2) to sdiff(1) to the following files:Ricardo Mestre
filename1 - given via args - read permission filename2 - same as above tmpdir - if TMPDIR env var is changed, or _PATH_TMP by default - read/write/create/delete permissions /usr/bin/diff - the default diff program - execute permission _PATH_BSHELL - to spawn an EDITOR/VISUAL if -o is used - execute permission this diff only applies unveil(2) if -F is not used, meaning that we are not changing the default diff program to be used since that way we would need to find where the binary is whereas by default we are sure that the path is /usr/bin/diff. this will be revisited at a later stage to cover all cases. feedback and OK millert@ deraadt@
2017-10-17add missing HISTORY; based on CVS logs and release announcementsIngo Schwarze
2017-09-05Add -Wno-sign-compare, the single warning produced is a false positive;Otto Moerbeek
ok deraadt@
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-10-18sorry, sdiff -o interactive mode does another spawnTheo de Raadt
2015-10-15After spawning, the parent can pledge "stdio rpath wpath cpath"Theo de Raadt
from rob pierce
2015-10-10pledge "stdio rpath wpath cpath proc exec". there is some potentialTheo de Raadt
for dropping some path attributes in between, but i will let someone else do that. ok doug
2015-02-28Reduce usage of predefined strings in manpages.Anthony J. Bentley
Predefined strings are not very portable across troff implementations, and they make the source much harder to read. Usually the intended character can be written directly. No output changes, except for two instances where the incorrect escape was used in the first place. tweaks + ok schwarze@
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2013-11-26unsigned char casts for ctypeTheo de Raadt
ok okan
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-04-01Avoid memory leak while parsing diff's output.Tobias Stoeckmann
ok lteo
2010-10-16paste in EXIT STATUS from diff(1); confirmed by rayJason McIntyre
2009-06-07Don't leak FILE * if multiple -o flags are given.Ray Lai
2009-06-07Use SIZE_MAX, not SIZE_T_MAX.Ray Lai
2009-06-07Don't use $TMPDIR if it is empty.Ray Lai
2009-06-07Plug file descriptor leak when diffing regular files.Ray Lai
2009-06-07Remove outdated comment.Ray Lai
2007-10-17- Be more careful about pre-existing SIGCHLD handlers (or SIG_IGN) byTheo de Raadt
temporarily restoring default behaviour. This is not 100% ideal. But this fixes editor handling in mail... bah, it is really unfortunate that got broken - refactor the restoration code as well, to make it simpler ok ray
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-06-29*long* options are undocumented; ok rayJason McIntyre
2007-06-28groff understands `|', so no need to duplicate macros.Jason McIntyre
2007-06-28Alias `1' and `2' to `l' and `r', making interactive merges easierRay Lai
on the fingers. This was recently added to GNU sdiff: http://www.nabble.com/sdiff-UI-enhancement-t3877253.html Initial diff from Steven Kreuzer <skreuzer (at) exit2shell dot com>. OK jmc, millert, sobrado, deraadt.
2007-06-27Add missing undocumented --ignore-case flag, to improve compatibilityRay Lai
with GNU sdiff. From Steven Kreuzer <skreuzer () exit2shell ! com>
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-11Sync with editit from sendbug.Ray Lai
2007-04-25Copy signal-safe edit function from sendbug.Ray Lai
OK millert@, threatened by deraadt@.
2007-02-26don't store write(2) return value in size_t; fixes test against -1.Steven Mestdagh
ok ray@
2007-02-22Expand description.Ray Lai
Help and okay jmc@.
2006-12-20.Xr cmp and sdiff each otherJasper Lievisse Adriaanse
ok jmc@ ray@
2006-09-19Use S_IS* macros insted of masking with S_IF* flags. The latter mayOtto Moerbeek
have multiple bits set, which lead to surprising results. Spotted by Paul Stoeber, more to come. ok millert@ pedro@ jaredy@ djm@
2006-08-04Add bug: may not work with binary data.Ray Lai
OK jmc@
2006-05-25Remove xmktemp() and uses plain old mkstemp(3), avoiding raceRay Lai
conditions. OK moritz@, otto@
2006-05-10Now that lint is smarter, remove /* NOTREACHED */ comments.Ray Lai
OK jaredy@
2006-03-11/tmp -> _PATH_TMPRay Lai
ok jaredy, otto
2006-03-05Handle stdin as arg; from Ray Lai; ok jaredy@Otto Moerbeek
2006-02-22document TMPDIR; from ray laiJason McIntyre
2006-02-20Move two functions to separate file; from Ray Lai; ok jaredy@Otto Moerbeek
2006-02-20refactor processq() loop. From Rai Lay; ok jaredy@Otto Moerbeek
2006-02-15- improve description of -IJason McIntyre
- Xr re_format(7) from ray lai
2006-02-15Fix bug introduced by previous delint and rename a var. From Ray.Otto Moerbeek
2006-02-15delint; from Ray with input from me and jaredy@; ok jaredy@Otto Moerbeek
2006-02-14Fix -I and some cleanup, from Ray Lai in PR 5002; ok jaredy@Otto Moerbeek
2006-02-02In interactive mode force newline between left and right sets in the "e b"Claudio Jeker
command. OK tedu@
2005-12-29add an ENVIRONMENT section, and document EDITOR and VISUAL;Jason McIntyre
ok tedu
2005-12-28spacingTheo de Raadt
2005-12-27add a SEE ALSO section;Jason McIntyre
2005-12-27- kill trailing whitespaceJason McIntyre
- wording tweaks - put sections in the right order
2005-12-27remove xstrtonumTed Unangst