Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-03-30 | escape "An" in a %T call, so groff does not flag it as an error; | Jason McIntyre | |
2023-03-30 | adjust markup of one of the builtin kill usage | Omar Polo | |
The Op on its own line becomes part of the item body instead of the list item itself. OK millert@ | |||
2023-03-08 | Delete obsolete /* ARGSUSED */ lint comments. | Philip Guenther | |
ok miod@ millert@ | |||
2022-03-31 | man pages: add missing commas between subordinate and main clauses | Christian Weisgerber | |
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@ | |||
2022-01-28 | When it's the possessive of 'it', it's spelled "its", without the | Philip Guenther | |
apostrophe. | |||
2022-01-05 | funopen(): change seekfn argument to use off_t, not fpos_t | Todd C. Miller | |
On BSD, fpos_t is typedef'd to off_t but some systems use a struct. This means fpos_t is not a portable function argument or return value. Both FreeBSD and the Linux libbsd funopen() have switched to off_t for this--we should too. From Joe Nelson. OK deraadt@ | |||
2021-07-02 | Before calling setrlimit(), pull cur up to max. | Theo de Raadt | |
ok millert | |||
2021-03-08 | Add some references, most of these were removed when we stopped building | Jonathan Gray | |
and installing USD/SMM/PSD docs. jmc@ agrees with the direction, ok millert@ on an earlier diff | |||
2020-10-06 | I observed "csh i < file-containing-^T" to hit tenex(), which proceeds to | Theo de Raadt | |
perform tty(4) ioctl operations against a non-tty. That is a pledge violation, you can only do a subset of tty(4) ioctl against a fd which references a tty device. Sidestep this problem if the input descriptor is not a tty ok anton millert | |||
2020-08-30 | Fix multiple variable definitions to avoid errors with -fno-common. | mortimer | |
ok millert@ | |||
2020-07-08 | Clarify that csh's -f flag is not just about .cshrc. | Todd C. Miller | |
We don't need to be too specific about this in su(1), leave the details for csh(1). OK jca@ | |||
2019-11-29 | typo fix. | Nayden Markatchev | |
ok deraadt@ | |||
2019-07-29 | Remove several .Xrs to section 2 and 3 that help little. | Ingo Schwarze | |
Instead, link to the explanation of octal permission masks in chmod(2) directly from the description of "umask", and to ksh(1) from SEE ALSO. Fixing an oddity pointed out by guenther@; OK jmc@ millert@. | |||
2019-07-26 | Replace cross-references to sigvec(3) with sigaction(2). | Todd C. Miller | |
OK guenther@ | |||
2019-07-03 | snprintf/vsnprintf return < 0 on error, rather than -1. | Theo de Raadt | |
2019-06-28 | When system calls indicate an error they return -1, not some arbitrary | Theo de Raadt | |
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future. | |||
2019-06-28 | mkstemp() returns -1 on failure | Theo de Raadt | |
2019-06-02 | In manpages, don't escape apostrophes as \'; it's rarely what you want. | Anthony J. Bentley | |
Most of these are correct just as '. A few benefit from Ql or \(aq. But if in doubt, just use '. | |||
2018-11-10 | remove mention of sbrk. | Daniel Dickman | |
ok tb@ | |||
2018-10-26 | Fix memory leak in setDolp() where dp is NULL. Based on a diff from | miko | |
netbsd, with help from martijn@ and millert@. | |||
2018-10-24 | Fix some minor issues found by coverity. | Martijn van Duren | |
OK millert@ and miko@ | |||
2018-09-19 | If getcwd() fails in dinit(), the stat buffer 'swd' is used | Todd C. Miller | |
uninitialized by the else clause. Since it is used in both clauses we should perform the stat before the if(). However, fixing this causes 'cp' to be unitialized in some case so initialize cp to NULL and move the "cp == NULL" check out of the first if() clause now that it can be true in either case. OK miko@ deraadt@ | |||
2018-09-19 | Fix last commit, I made one of the changes to the wrong line. | Todd C. Miller | |
Noticed by martijn@ | |||
2018-09-19 | Compare against NULL, not '\0' for pointers. Quiets a warning on | Todd C. Miller | |
newer gcc. | |||
2018-09-18 | Restore the xmalloc(), xcalloc(), xreallocarray() and xstrdup() changes. | Todd C. Miller | |
OK deraadt@ | |||
2018-09-18 | backout last week of csh diffs. They are disasterously broken, on i386 | Theo de Raadt | |
it becomes entirely unusable. | |||
2018-09-18 | remove macros for xmalloc(), xcalloc() & xreallocarray() and just name the | miko | |
functions that. ok millert@ martijn@ | |||
2018-09-17 | Replace any() with strchr(3). | Martijn van Duren | |
OK millert@ and miko@ | |||
2018-09-15 | strsave() is hard-fail strdup() so simplify and rename to xstrdup(). | miko | |
with help from martijn@. ok millert@ martijn@ | |||
2018-09-08 | blkfree() takes no action for NULL pointer so callers can avoid checking. | miko | |
ok jca@ | |||
2017-12-18 | No need to declare variable name as static in dounsetenv(). Also, drop a | anton | |
redundant call to free() since name is always freed upon return. From Michael W. Bombardieri, with some tweaks by myself. | |||
2017-12-16 | Passing NULL to free() is fine; from Michael W. Bombardieri. | anton | |
2017-12-12 | Document change in the default shell prompts. | Theo Buehler | |
Discussed with and ok jmc | |||
2017-12-12 | Include hostname in shell prompts by default | Theo Buehler | |
With tmux, ssh and vmd, we tend to open shells on many different hosts simultaneously and the default prompts '$ ' and '# ' for {,k}sh as well as '% ' and '# ' for csh become dangerous: it's very easy to issue a command on the wrong host. This can easily be avoided by displaying the hostname in the prompt. Everything beyond "hostname{$,#,%} " is going to be a matter of taste, so we left it at that. If you use an FQDN, only the first part (the output of 'hostname -s') will be printed. requested by and ok deraadt; mostly positive feedback many ok anton, brynet, bcallah and others | |||
2017-11-16 | In revision 1.35 of file.c, tenex() was modified to respect the inputline_size | anton | |
argument but I forgot to adapt one conditional. Still no functional change since tenex() only has one call site where `inputline_size == sizeof(buf)`. | |||
2017-11-16 | Zap a redundant cast. | anton | |
2017-08-30 | Zap redundant assignment; ok jca@ | anton | |
2017-08-30 | Respect inputline_size argument. No functional change since tenex() only has one | anton | |
call site where `inputline_size == sizeof(buf)`. | |||
2017-08-30 | Fix pasting of long (>BUFSIZ) lines in csh with filec enabled. NUL-terminating | anton | |
the input buffer instructs csh that the buffer contains a complete command. This is wrong and should only happen when buffer is not full, otherwise more data has to be read in order form a complete command. While here, do not print the prompt again when the input exceeds the input buffer and while inserting a line continuation (backslash). | |||
2017-07-26 | Align variables and put logical operators at EOL. No binary change. | anton | |
2017-07-26 | Postpone printing of prompt if filec is enabled in csh. Any I/O should be | anton | |
performed first when canonical mode has been disabled on the tty just like ksh does. Discovered by the regress tests. Joint work with bluhm@, ok deraadt@ | |||
2017-07-22 | Use monotonic clock for the time command in csh and ksh. | anton | |
From Scott Cheloha ok tb@ | |||
2017-07-18 | Restore tty when aborting loop. | anton | |
ok deraadt@ | |||
2017-07-10 | remove misc. depend and yacc nits that no longer matter. | Marc Espie | |
okay millert@ | |||
2017-06-29 | Switch TIOCSTAT to _IO(). Two decades ago it was mistakenly defined to | Theo de Raadt | |
take an argument. Discussed with millert and tedu. | |||
2017-06-27 | Tweak previous: align declarations and rename local variable. | anton | |
2017-06-27 | in recently commited TIOCSTI replacement code, do not assume | Theo de Raadt | |
little-endian or unsigned char :-) ok anton | |||
2017-06-22 | Make sure to abort loops when pressing ^C in csh. | anton | |
Regression found by deraadt@ | |||
2017-06-21 | Minor style(9) corrections and whitespace cleanup to csh. | anton | |
ok deraadt@ tb@ | |||
2017-06-21 | Replace usage of TIOCSTI in csh using a more common IO-loop where ICANON is | anton | |
disabled and a single char of input is read at a time. This requires the line editing capabilities provided when ICANON is enabled to be implemented. With help and feedback from deraadt@ |