| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Instead of an error string, return the usual 0 or -1 and let the caller
figure out what, if anything, to tell the user.
* Avoid string manipulations by opening /dev first and using openat()
with O_RESOLVE_BENEATH.
* Add a boolean argument which, if false, causes ttymsg() to return
without sending the message if the tty's group-writable bit is not
set. This saves programs that respect this setting (like syslogd(8))
from having to check before calling ttymsg().
* Update all callers.
The observable effect of this change is minimal except for slightly
different error messages when ttymsg() fails. However, syslogd(8) will
no longer print spurious error messages on the console after trying and
failing to write a log message to an X11 session.
PR: 295171
MFC after: 1 week
Reviewed by: jfree, markj
Differential Revision: https://reviews.freebsd.org/D57018
|
| |
|
|
|
|
|
|
|
|
|
| |
We've ifdef'd out the copyright strings for some time now. Go ahead and
remove the ifdefs. Plus whatever other detritis was left over from other
recent removals. These copyright strings are present in the comments and
are largely from CSRG's attempt at adding their copyright to every
binary file (which modern interpretations of the license doesn't
require).
Sponsored by: Netflix
|
| |
|
|
|
|
|
|
| |
Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.
Sponsored by: Netflix
|
| |
|
|
| |
Remove /^#include\s+<sys/cdefs.h>.*$\n\s+__FBSDID\("\$FreeBSD\$"\);\n/
|
| |
|
|
|
|
|
|
| |
In most cases, usage does not return, so mark them as __dead2. For the
cases where they do return, they have not been marked __dead2.
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/735
|
| |
|
|
|
|
|
|
|
| |
leak the FILE *.
CID: 978383
Notes:
svn path=/head/; revision=327277
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
current version of FreeBSD, this isn't guarenteed by the API.
Custom security modules, or future implementations of the setuid and
setgid may fail.
Submitted by: Erik Cederstrand
Approved by: cperciva
MFC after: 3 days
Notes:
svn path=/head/; revision=241848
|
| |
|
|
|
|
|
|
| |
PR: 165429
Submitted by: amdmi3
Notes:
svn path=/head/; revision=233269
|
| |
|
|
| |
Notes:
svn path=/head/; revision=227200
|
| |
|
|
|
|
|
| |
wrong point and the actual column # get out of sync across the buffer size.
Notes:
svn path=/head/; revision=223940
|
| |
|
|
|
|
|
|
|
|
|
|
| |
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
Notes:
svn path=/head/; revision=216370
|
| |
|
|
|
|
|
|
| |
They were already converted to use libulog, so it's easy to convert them
to utmpx.
Notes:
svn path=/head/; revision=202200
|
| |
|
|
| |
Notes:
svn path=/head/; revision=201224
|
| |
|
|
|
|
|
|
|
|
|
| |
Because our implementation guarantees the strings inside struct utmpx to
be null terminated, we don't need to copy everything out, which makes
the code nicer to read.
Also set WARNS to 6 and add $FreeBSD$ to keep SVN silent.
Notes:
svn path=/head/; revision=200156
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Handle wrapping correctly when \r appears in the input, and don't
remove the \r from the output.
- For lines longer than 79 characters, don't drop every 80th character.
- Style: Braces around compound while statement.
PR: 114498
Submitted by: Niclas Zeising <niclas.zeising@gmail.com> (earlier version)
Notes:
svn path=/head/; revision=175346
|
| |
|
|
|
|
|
|
|
|
| |
Apparently with the new pts code stalled entries are printed, when they are
not with the BSD ptys.
Submitted by: Michal Mertl <mime at traveller dot cz>
Notes:
svn path=/head/; revision=155875
|
| |
|
|
| |
Notes:
svn path=/head/; revision=111209
|
| |
|
|
|
|
|
| |
Not added to Makefile as WARNS=2 will be made default.
Notes:
svn path=/head/; revision=87675
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
also use this, and they shouldn't have to have their own prototypes.
- Silence warnings about constness and signedness in ttymsg(). This
includes changing the return value to a `const char *', and changing
the types of `left' and `wret' (both byte counts) to ssize_t.
Reviewed by: bde
Notes:
svn path=/head/; revision=83242
|
| |
|
|
|
|
|
| |
Reviewed by: imp, markm
Notes:
svn path=/head/; revision=83082
|
| |
|
|
|
|
|
|
|
|
|
| |
egid (tty).
Obtained from: OpenBSD
Submitted by: Maxime Henrion <mux@qualys.com>
Reviewed by: imp
Notes:
svn path=/head/; revision=76367
|
| |
|
|
|
|
|
|
|
|
| |
Don't treat pointer as a boolean, but instead test it against NULL.
Add warning for groups that don't exist
Submitted by: ru
Notes:
svn path=/head/; revision=73320
|
| |
|
|
|
|
|
|
|
|
| |
a given group.
o Minor code style cleanups while I'm here
Reviewed by: bde, kris, markm, audit@
Notes:
svn path=/head/; revision=73255
|
| |
|
|
|
|
|
|
|
| |
with each other.
Reviewed by: markm, dwmalone
Notes:
svn path=/head/; revision=69231
|
| |
|
|
|
|
|
|
| |
In the case where the program is executed by a daemon running in the
background the terminal might not have a tty. The '(null)' is confusing.
Notes:
svn path=/head/; revision=66557
|
| |
|
|
|
|
|
|
|
| |
PR: 17867
Submitted by: Joel Ray Holveck <joelh@gnu.org>
Nagged by: nrahlstr
Notes:
svn path=/head/; revision=63909
|
| |
|
|
|
|
|
|
|
| |
unnecessary forced linewraps on some terminals.
Submitted by: David McNett <nugget@slacker.com>
Notes:
svn path=/head/; revision=50776
|
| |
|
|
|
|
|
|
|
|
| |
insertion of redundant crlf's. Eliminated the venetian-blind effect
in walled text.
Submitted by: David McNett <nugget@slacker.com>
Notes:
svn path=/head/; revision=50772
|
| |
|
|
| |
Notes:
svn path=/head/; revision=50477
|
| |
|
|
|
|
|
|
|
| |
Increase the size of a number of buffers and replace strcpy/strcat/sprintf
with snprintf(). There was a minor and possibly not exploitable security
hole related to one sprintf().
Notes:
svn path=/head/; revision=41717
|
| |
|
|
|
|
|
|
|
| |
Rewrote allowed character test to be more efficient
Fix screen position calculations: control and 8bit characters was
not counted properly
Notes:
svn path=/head/; revision=29434
|
| |
|
|
| |
Notes:
svn path=/head/; revision=28695
|
| |
|
|
| |
Notes:
svn path=/head/; revision=25812
|
| |
|
|
| |
Notes:
svn path=/head/; revision=25777
|
| |
|
|
| |
Notes:
svn path=/head/; revision=24729
|
| |
|
|
|
|
|
| |
posix standard on the topic.
Notes:
svn path=/head/; revision=24360
|
| |
|
|
| |
Notes:
svn path=/head/; revision=17505
|
| |
|
|
|
|
|
|
| |
write and talk are not affected.
Now print out escape sequences in the same way as is done by write(1).
Notes:
svn path=/head/; revision=3809
|
|
|
Notes:
svn path=/cvs2svn/branches/CHRISTOS/; revision=1590
|