| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
and installing USD/SMM/PSD docs.
jmc@ agrees with the direction, ok millert@ on an earlier diff
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
ok millert@
|
|
|
|
|
| |
We don't need to be too specific about this in su(1), leave the
details for csh(1). OK jca@
|
|
|
|
| |
ok deraadt@
|
|
|
|
|
|
| |
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@.
|
|
|
|
| |
OK guenther@
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Most of these are correct just as '. A few benefit from Ql or \(aq.
But if in doubt, just use '.
|
|
|
|
| |
ok tb@
|
|
|
|
| |
netbsd, with help from martijn@ and millert@.
|
|
|
|
| |
OK millert@ and miko@
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
| |
Noticed by martijn@
|
|
|
|
| |
newer gcc.
|
|
|
|
| |
OK deraadt@
|
|
|
|
| |
it becomes entirely unusable.
|
|
|
|
|
|
| |
functions that.
ok millert@ martijn@
|
|
|
|
| |
OK millert@ and miko@
|
|
|
|
|
|
| |
with help from martijn@.
ok millert@ martijn@
|
|
|
|
| |
ok jca@
|
|
|
|
|
|
| |
redundant call to free() since name is always freed upon return.
From Michael W. Bombardieri, with some tweaks by myself.
|
| |
|
|
|
|
| |
Discussed with and ok jmc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
argument but I forgot to adapt one conditional. Still no functional change since
tenex() only has one call site where `inputline_size == sizeof(buf)`.
|
| |
|
| |
|
|
|
|
| |
call site where `inputline_size == sizeof(buf)`.
|
|
|
|
|
|
|
|
|
| |
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).
|
| |
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
| |
From Scott Cheloha
ok tb@
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
okay millert@
|
|
|
|
| |
take an argument. Discussed with millert and tedu.
|
| |
|
|
|
|
|
| |
little-endian or unsigned char :-)
ok anton
|
|
|
|
| |
Regression found by deraadt@
|
|
|
|
| |
ok deraadt@ tb@
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
| |
Instead, close the fds that reside in between the gaps of used fds and once the
largest used fd is reached call closefrom().
ok deraadt@
|
|
|
|
| |
ok deraadt@ tb@
|
|
|
|
|
| |
programs will build even without a make depend first.
okay tb@ millert@
|
| |
|
|
|
|
|
|
| |
but avoids doing pledge "tty" operations against flat files. The shell's
tty will be kind of special in the near future. isatty is also a lot less
kernel code to run through the loop.
|
| |
|
|
|
|
|
|
| |
unsigned long long
ok natano@ tedu@
|