Baptiste Daroussin
b3075010f8
Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.
2012-12-27 19:43:29 +00:00
Baptiste Daroussin
0c50344969
Fix a regression in "pw group show" introduced r242349:
...
print a newline after printing each group line.
PR: bin/174731
Submitted by: Jan Beich <jbeich@tormail.org>
2012-12-27 14:44:13 +00:00
Baptiste Daroussin
460a6dac0b
Simplify the code by using the new gr_add function
2012-12-27 14:35:06 +00:00
Devin Teske
d1bb7cca77
Comments and fit to 80-columns.
2012-12-27 07:52:50 +00:00
Baptiste Daroussin
ae61f4dda6
Simplify copying of group members by using memcpy
...
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
2012-12-26 23:16:24 +00:00
Baptiste Daroussin
c195c1ba19
Fix off-by-one error in memory allocation: j entries, one new and a null
...
terminator is j + 2.
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
2012-12-26 23:14:33 +00:00
Baptiste Daroussin
0083d61abc
In case of the deletion of a user those whole database has to be regenerated,
...
otherwise the user planned to be deleted remain in the pwd.db while removed from
the plain text password file.
2012-12-26 18:28:17 +00:00
Baptiste Daroussin
dc0f2b4217
Fix creating a user and adding it to a group
...
Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim
2012-12-26 18:14:45 +00:00
Rick Macklem
659cf796d3
Attempt to clarify that for ZFS, all file systems under
...
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.
MFC after: 2 weeks
2012-12-25 22:47:49 +00:00
Rick Macklem
211024e9b6
Attempt to clarify that for ZFS, all file systems under
...
the NFSv4 root must be exported. This is because ZFS
checks exports itself.
This is a content change.
MFC after: 2 weeks
2012-12-25 22:34:43 +00:00
Devin Teske
56961fd794
Add more debugging to help with diagnosis of program-flow when needed.
2012-12-25 10:47:45 +00:00
Devin Teske
12f110aa1a
Remove unnecessary duplicate initialization of the dialog(1) API (automatically
...
bootstrapped on-include unless DIALOG_SELF_INITIALIZE is set to NO before-hand)
2012-12-25 09:30:25 +00:00
Matthew Seaman
e41b8acbd5
Remove extraneous space and new-line.
...
Submitted by: pjd, gcooper
Approved by: bapt
MFC after: 2 weeks
2012-12-23 20:39:03 +00:00
Rick Macklem
7dbcc85c6b
Fix the Makefile so it can build gssd.c after r244604.
...
MFC after: 2 weeks
2012-12-23 20:12:57 +00:00
Matthew Seaman
d8f9490c67
Third time's the charm. pkg -N output needs to go to stderr.
...
Approved by: bapt
MFC after: 2 weeks
2012-12-23 11:22:18 +00:00
Rick Macklem
09e3247ebd
Document the new gssd daemon options added by r244604.
...
This is a content change.
MFC after: 2 weeks
2012-12-22 23:34:28 +00:00
Rick Macklem
158b97986e
It was reported via email that some sshds create kerberos
...
credential cache files with names other than /tmp/krb5cc_<uid>.
The gssd daemon does not know how to find these credential caches.
This patch implements a new option "-s" that does a search for
credential cache files, using roughly the same algorithm as the
gssd daemon for Linux uses. The gssd behaviour is only changed
if the new "-s" option is specified. It also implements two other
new options related to the "-s" option.
Reported by: Piete.Brooks at cl.cam.ac.uk, Herbert Poeckl
Tested by: Herbert Poeckl (admin at ist.tugraz.at), Illias A. Marinos
MFC after: 2 weeks
2012-12-22 23:21:17 +00:00
Matthew Seaman
d482e1f4a6
Switch from 'pkg -n' to 'pkg -N' as the test for pkgn activation
...
status. '-n' is already used extensively elsewhere in pkgng (to mean
'dry-run') and this reduces the potential confusion
Submitted by: eadler
Approved by: bapt
MFC after: 2 weeks
2012-12-22 15:13:16 +00:00
Andrew Turner
f716742010
Add the missing '$' from the LIBNETBSD variable
2012-12-22 04:53:35 +00:00
Devin Teske
35a157a0eb
Split dialog(1)-based validators for hostname/netmask into two, providing
...
transparent validators that can be used free of dialog(1) where needed.
Syntax/return of the original dialog(1)-based validators remains unchanged.
2012-12-21 21:33:47 +00:00
Devin Teske
ab3e5e540b
Remove unused include.
2012-12-21 21:03:34 +00:00
Brooks Davis
c6ec7d3183
Add NetBSD's mtree to the tree and install it as nmtree as the first step
...
towards replacing our mtree.
Sponsored by: DARPA, AFRL
Thanks to: cristos@NetBSD for reviewing and committing my patches
wiz@NetBSD for fixing typos in my patches
2012-12-21 21:00:00 +00:00
Devin Teske
d3c2b8b665
Change axiom for initialization. Including script can disable (default)
...
automatic initialization by setting appropriate variable to particular value.
2012-12-21 20:46:58 +00:00
Devin Teske
34f9b7199d
Remove erroneous use of "local" (not in a function).
2012-12-21 20:36:12 +00:00
Devin Teske
13aadd84f5
New f_show_info() function for dialog(1) --infobox using printf(1) syntax.
2012-12-21 20:29:28 +00:00
Devin Teske
fa2e39c892
Use f_show_help() where printf(1) syntax is desired.
2012-12-21 20:11:41 +00:00
Matthew Seaman
ecfed9f2eb
In preparation for making 'pkg -n' the one true method of determining
...
whether a system has been configured to use pkgng, cause /usr/sbin/pkg
recognise a -n option and exit with a failure code when the pkg port
is not installed.
Approved by: bapt
MFC after: 2 weeks
2012-12-21 20:01:13 +00:00
Devin Teske
526e1dc1c0
Improve the debugging abilities and clean up debug messages. In most cases,
...
all one has to do is set the environment variable DEBUGGING to get the debug
messages to appear on the console.
2012-12-21 19:26:17 +00:00
Devin Teske
298cf604cc
Add much-needed dialog(1) --inputbox function for simplifying the process of
...
requesting input from the user.
2012-12-21 18:58:19 +00:00
Kevin Lo
a5752d55e0
Fix socket calls on error post-r243965.
...
Submitted by: Garrett Cooper
2012-12-21 15:54:13 +00:00
Neel Natu
d72323d1d9
Divine the array size by using 'nitems(array)' instead of using magic numbers.
...
Suggested by: Garrett Cooper
2012-12-21 04:44:40 +00:00
Neel Natu
5b87feb64a
The MPtable specification allows for an 8-bit "BUS ID" and "I/O APIC ID".
...
Since the 'busses[]' and 'apics[]' arrays are indexed by these 8-bit IDs
make sure that they have enough space to accomodate up to 256 entries.
Submitted by: Ravi Shamanna
Obtained from: NetApp
2012-12-21 01:31:56 +00:00
Neel Natu
ec6509897a
Teach acpidump to dump the DMA Remapping Reporting table (aka DMAR).
...
The DMAR table is documented in chapter 8 of the Intel VT-d specification.
Reviewed by: jhb
Obtained from: NetApp
2012-12-21 01:19:48 +00:00
Mark Johnston
f26612d3ac
- Make sure that errno isn't modified before calling logerror() in error
...
conditions.
- Don't check for AF_INET6 when compiled without INET6 support.
PR: bin/173930
Submitted by: Garrett Cooper <yanegomi@gmail.com>
Approved by: rstone (co-mentor)
MFC after: 1 week
2012-12-20 23:21:20 +00:00
Rick Macklem
bf29178ce5
Post r243965 the nfsd daemon will not start up for kernels
...
built without "options INET6". This patch fixes the problem.
Reported by: avg
Tested by: avg
MFC after: 2 weeks
2012-12-19 21:00:22 +00:00
Rick Macklem
765782e799
Fix the gssd daemon so that it uses syslog() to report
...
an error instead of calling err() when it is daemonized,
so that the error gets logged.
Discussed with: rwatson, jhb
Tested by: Illias A. Marinos, Herbert Poeckl
MFC after: 2 weeks
2012-12-17 00:31:55 +00:00
Eitan Adler
7cb0189de6
Minor wording improvments to some manual pages
...
Approved by: bcr (mentor)
Obtained from: DragonflyBSD (a5294ca835317c68c919ab43936da4f05ab6e926)
MFC after: 3 days
2012-12-16 23:00:13 +00:00
Mikolaj Golub
3cfa2135c5
Change iostat -Ix
to display total duration of transactions instead
...
of average duration, and total busy time instead of %.
This looks more useful when one runs `iostat -Ix` periodically to
collect statistics: e.g. now it is possible to calculate busy %
between two runs subtracting total busy times and dividing per time
period.
Average duration and % busy are still available via `iostat -x`.
2012-12-15 18:21:09 +00:00
Alfred Perlstein
7b4708028a
Change progress indicator for downloading patches.
...
Use a percent style indicator instead of emitting one
long line of patch numbers.
2012-12-13 01:39:49 +00:00
Xin LI
f292f6dd5e
Add -R, an option to restart all enabled "local" services.
...
Discussed on: -rc@ (in September)
MFC after: 2 months
2012-12-12 01:50:58 +00:00
Glen Barber
d03e1e1b65
Add missed BETA* to list.
...
Approved by: simon (implicit)
MFC after: 3 days
X-MFC-With: r244058
2012-12-09 22:55:51 +00:00
Glen Barber
39d4f2c6f0
Get 'uname -r' earlier, so it can be used to determine what branch is
...
being run to set BSDINSTALL_DISTSITE accordingly. This change allows
non-RELEASE branches to use the FTP snapshots directory for bootonly.iso
installations.
Approved by: simon
2012-12-09 22:53:53 +00:00
Eitan Adler
839f11a4fe
A number of places in the source tree still reference cuad.* after
...
sio(4) was deprecated by uart(4).
s/cuad/cuau/g/
PR: docs/171533
Reviewed by: imp
Approved by: cperciva (implicit)
MFC after: 3 weeks
2012-12-08 22:16:36 +00:00
Baptiste Daroussin
6a969461db
remove redundant yyparse declarations
...
PR: conf/174079
Submitted by: Garrett Cooper <yanegomi@gmail.com>
2012-12-05 20:28:44 +00:00
Hiroki Sato
0bebb5448b
- Move definition of V_deembed_scopeid to scope6_var.h.
...
- Deembed scope id in L3 address in in6_lltable_dump().
- Simplify scope id recovery in rtsock routines.
- Remove embedded scope id handling in ndp(8) and route(8) completely.
2012-12-05 19:45:24 +00:00
Eitan Adler
fa65b91ab3
Simplify string duplication: use strdup instead of malloc + strcpy
...
Submitted by: db
Approved by: cperciva
MFC after: 2 weeks
2012-12-05 13:56:56 +00:00
Eitan Adler
dae7204032
Avoid overflowing the file buffer
...
Submitted by: db
Approved by: cperciva
MFC after: 2 weeks
2012-12-05 13:56:52 +00:00
Eitan Adler
91d073903e
Use strdup instead of malloc + strcpy
...
Submitted by: db
Approved by: cperciva
MFC after: 2 weeks
2012-12-05 13:56:49 +00:00
Eitan Adler
6c3c59886c
Avoid overflow of file buffer
...
Submitted by: db
Approved by: cperciva
MFC after: 2 weeks
2012-12-05 13:56:46 +00:00
Eitan Adler
61fd27bb3b
Remove useless check for NULL prior to free.
...
Approved by: cperciva
MFC after: 2 weeks
2012-12-05 13:56:43 +00:00