| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
always look up -network and -mask addresses numerically before
trying getnetbyname(). Without this, we may end up attempting DNS
queries on silly names such as "127.0.0.0.my-domain.com". See the
commit log from revisions 1.21 and 1.20 for further details.
|
|
|
|
|
|
| |
sys/mount.h.
Suggested by: phk
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
removes the last path component until the mount() succeeds. However,
the code never checks if it has passed the mountpoint, so in some
cases where the mount() never succeeds, it can end up applying the
flags from a mounted filesystem to the underlying one.
Add a sanity check to the code which removes the last path component:
test that the fsid associated with the new path is the same as that
of the old one.
PR: bin/7872
|
|
|
|
|
| |
a Sun background think in a more FS-centric mind set. Add a note to help
the Sun backgrounded ones to not make invalid assumptions.
|
|
|
|
| |
export in FreeBSD'ville for `make installworld' elsewhere.
|
| |
|
|
|
|
| |
Reviewed by: kris
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a number of assumptions related to the parsing of options in
/etc/exports, and missed a few necessary new error checks.
The main problems related to netmasks: an IPv6 network address
missing a netmask would result in the filesystem being exported to
the whole IPv6 world, non-continuous netmasks would be made continuous
without any warnings, and nothing prevented you specifying an IPv4
mask with an IPv6 address.
This change addresses these issues. As a side-effect we now store
netmasks in sockaddr structs (this matches the kernel interface,
and is closer to the way it used to be). Add a flag OP_HAVEMASK to
keep track of whether or not we have successfully got a mask from
any source. Replace some mask-related helper functions with versions
that use the sockaddr-based masks.
Also tidy up get_net() and fix the code that interprets IPv4 partial
networks such as "127.1" as network rather than host addresses.
Properly zero out some structures that were ending up partially
containing junk from the stack, fix a few formatting issues, and
add a comment noting some assumptions about export arguments.
|
|
|
|
|
| |
PR: 24437
Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
|
|
|
|
|
|
|
|
|
|
| |
would call malloc, stdio and other library functions from the signal
handler which is not safe due to reentrancy problems.
Instead, add a simple handler that just sets a flag, and call the
more complex function from main() when necessary. Unfortunately to
be able to check this flag, we must expand the svc_run() call, but
the RPC library makes that relatively easy to do.
|
| |
|
|
|
|
| |
serves as an example of libdevinfo usage.
|
|
|
|
| |
Approved by: fenner
|
|
|
|
|
| |
Submitted by: Konstantinos Konstantinidis <kkonstan@duth.gr>
PR: 26073
|
|
|
|
|
|
| |
MFC candidate.
Pointed out by: knu
|
|
|
|
| |
Pointed out by: Martin Blapp <mb@imp.ch>
|
| |
|
|
|
|
|
|
| |
Turn on my asbesto suit, and document the DD and Wizard mode menu
keys. It's a nuisance to always have to look them up in the source
code when needed.
|
| |
|
|
|
|
| |
as they're listed in the synopsis (alphabetical).
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Remove some horrible code that faked a "struct addrinfo" to be
later passed to freeaddrinfo(). Instead, add a new group type
"GT_DEFAULT" used to denote that the filesystem is exported to the
world, and treat this case separately.
- Don't clear the AI_CANONNAME flag in a struct addrinfo returned
by getaddrinfo. There's still a bit more struct addrinfo abuse
left in here.
- Simplify do_mount() slightly by using an addrinfo pointer to keep
track of the current address.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Revert del_mlist() to its pre-tirpc prototype. Unlike NetBSD's version,
ours lets the caller generate any syslog() messages, so that it
can include the service name in the message.
- Initialise a few local variables to clarify the logic and avoid some
compiler warnings.
- Remove a few unused functions and local variables, and fix some
whitespace issues.
- Reinstate the logic for avoiding duplicate host entries that got
removed accidentally in revision 1.41 (added in r1.5). This bit
was submitted in a slightly different form by Thomas Quinot.
Submitted by: Martin Blapp <mb@imp.ch>,
Thomas Quinot <quinot@inf.enst.fr>
PR: bin/26148
|
|
|
|
|
| |
Obtained from: BSD/os
Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
|
|
|
|
|
|
| |
group file. Because of the way the group sorting works while printing
out the new file it's not possible at this time to restore comments
in other locations, but at least they won't just disappear altogether.
|
| |
|
| |
|
|
|
|
| |
The .Cd macro does not cause a line break until in the SYNOPSIS section.
|
|
|
|
|
|
|
|
|
|
| |
one user who differs only by case. The other perl tools assume (or enforce)
the all lowercase requirement, therefore making the search through
master.passwd case insensitive seemed a reasonable optimization, IMO.
I understand, although I do not sympathize with, the argument that someone
might want to do this on purpose, and might subsequently want to use the
wrong tool for the job. So, this fix should hopefully satisfy both camps.
|
|
|
|
|
|
|
| |
username to rm.
PR: 25961
Submitted by: Linh Pham <lplist@closedsrc.org>
|
| |
|
|
|
|
| |
Submitted by: ru
|
|
|
|
| |
Reviewed by: ru
|
| |
|
| |
|
|
|
|
|
| |
Otherwise, "crontab -l > file; vi file; crontab file" adds an extra set
of "DO NOT EDIT" markers each and every time which is a bit silly.
|
|
|
|
|
|
|
| |
flags.
PR: misc/25049
Submitted by: Richard Roderick <richard@gohome.net>
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the following fixes had been made:
- check the size of the font being loaded and compare it with possible sizes
to minimise possibility of loading something that is not a fontfile at all
and turning console screen into garbage;
- prevent buffer overflow (and coredump as a result ) when loading valid
uuencoded file with size that exceeds allocated buffer;
- correct and improve several error messages.
Approved by: -audit, -hackers (silently)
|
|
|
|
| |
Reminded by: bde
|
|
|
|
|
|
|
|
| |
a mixer device will set/get the master volume levels
PR: 25156
Submitted by: Tony Finch <dot@dotat.at>
Reviewed by: cg, nik
|
|
|
|
|
|
|
|
|
|
| |
being present in the environment if the user has CDROM defined, or
has specified a device on the command line.
This avoids users of ports like 'workman' that use these variables
getting gratuitous warnings from cdcontrol.
Suggested by: John Sellens <jsellens@generalconcepts.com>
|
|
|
|
|
|
|
| |
Paxson et al, Status: Informational, May 1998), we should use "bits per
second" and "k" as 1000 not 1024 for throughput measures.
Submitted by: Eduardo Souza Machado da Silva <esms@acm.org>
|
| |
|
|
|
|
| |
Submitted by: J Wunsch <j@ida.interface-business.de> in freebsd-audit
|
|
|
|
| |
so do it if required.
|
|
|
|
| |
Requested by: jhb
|
| |
|
| |
|
| |
|