]> git.cameronkatri.com Git - pw-darwin.git/log
pw-darwin.git
12 years agoAdd O_CLOEXEC to flopen
Baptiste Daroussin [Thu, 27 Dec 2012 20:24:44 +0000 (20:24 +0000)]
Add O_CLOEXEC to flopen

Requested by: jilles

12 years agoSimplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.
Baptiste Daroussin [Thu, 27 Dec 2012 19:43:29 +0000 (19:43 +0000)]
Simplify vnextgrent and vnextpwent reusing pw_scan and gr_scan from libutil.

12 years agogr_dup: simplify duplication of group
Baptiste Daroussin [Thu, 27 Dec 2012 19:33:43 +0000 (19:33 +0000)]
gr_dup: simplify duplication of group

Submitted by: db

12 years ago- Clean up previous gr_add use malloc instead of calloc
Baptiste Daroussin [Thu, 27 Dec 2012 16:51:29 +0000 (16:51 +0000)]
- Clean up previous gr_add use malloc instead of calloc
- Fix tinderbox error

Submitted by: db

12 years agoFix a regression in "pw group show" introduced r242349:
Baptiste Daroussin [Thu, 27 Dec 2012 14:44:13 +0000 (14:44 +0000)]
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>

12 years agoSimplify the code by using the new gr_add function
Baptiste Daroussin [Thu, 27 Dec 2012 14:35:06 +0000 (14:35 +0000)]
Simplify the code by using the new gr_add function

12 years agoNew gr_add function to provide a clean and safe method to append a new member
Baptiste Daroussin [Thu, 27 Dec 2012 14:30:19 +0000 (14:30 +0000)]
New gr_add function to provide a clean and safe method to append a new member
into an existing group.

Submitted by: db

12 years agoUse flopen(3) instead of open(2) + flock(2)
Baptiste Daroussin [Thu, 27 Dec 2012 14:09:50 +0000 (14:09 +0000)]
Use flopen(3) instead of open(2) + flock(2)

12 years agoSimplify copying of group members by using memcpy
Baptiste Daroussin [Wed, 26 Dec 2012 23:16:24 +0000 (23:16 +0000)]
Simplify copying of group members by using memcpy

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>

12 years agoFix off-by-one error in memory allocation: j entries, one new and a null
Baptiste Daroussin [Wed, 26 Dec 2012 23:14:33 +0000 (23:14 +0000)]
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>

12 years agoIn case of the deletion of a user those whole database has to be regenerated,
Baptiste Daroussin [Wed, 26 Dec 2012 18:28:17 +0000 (18:28 +0000)]
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.

12 years agoFix creating a user and adding it to a group
Baptiste Daroussin [Wed, 26 Dec 2012 18:14:45 +0000 (18:14 +0000)]
Fix creating a user and adding it to a group

Reported by: "Sam Fourman Jr." <sfourman@gmail.com>, dim

12 years agoSimplify string duplication: use strdup instead of malloc + strcpy
Eitan Adler [Wed, 5 Dec 2012 13:56:56 +0000 (13:56 +0000)]
Simplify string duplication: use strdup instead of malloc + strcpy

Submitted by: db
Approved by: cperciva
MFC after: 2 weeks

12 years agoAvoid overflowing the file buffer
Eitan Adler [Wed, 5 Dec 2012 13:56:52 +0000 (13:56 +0000)]
Avoid overflowing the file buffer

Submitted by: db
Approved by: cperciva
MFC after: 2 weeks

12 years agoUse strdup instead of malloc + strcpy
Eitan Adler [Wed, 5 Dec 2012 13:56:49 +0000 (13:56 +0000)]
Use strdup instead of malloc + strcpy

Submitted by: db
Approved by: cperciva
MFC after: 2 weeks

12 years agoAvoid overflow of file buffer
Eitan Adler [Wed, 5 Dec 2012 13:56:46 +0000 (13:56 +0000)]
Avoid overflow of file buffer

Submitted by: db
Approved by: cperciva
MFC after: 2 weeks

12 years agoRemove useless check for NULL prior to free.
Eitan Adler [Wed, 5 Dec 2012 13:56:43 +0000 (13:56 +0000)]
Remove useless check for NULL prior to free.

Approved by: cperciva
MFC after: 2 weeks

12 years agoIn NIS mode first chmod(2) the temporary file and is succeed then rename(2)
Baptiste Daroussin [Tue, 20 Nov 2012 14:05:46 +0000 (14:05 +0000)]
In NIS mode first chmod(2) the temporary file  and is succeed then rename(2)

12 years agoonly rename(2) after chmod(2) has succeed
Baptiste Daroussin [Tue, 20 Nov 2012 14:03:09 +0000 (14:03 +0000)]
only rename(2) after chmod(2) has succeed
report error if chmod(2) fails

Reported by: jh

12 years agoCorrectly set the password file mode after renaming in NIS mode
Baptiste Daroussin [Tue, 20 Nov 2012 10:59:41 +0000 (10:59 +0000)]
Correctly set the password file mode after renaming in NIS mode

12 years agochange mode the group file to 0644 after a successfull rename(2)
Baptiste Daroussin [Tue, 20 Nov 2012 07:22:07 +0000 (07:22 +0000)]
change mode the group file to 0644 after a successfull rename(2)

12 years agoAvoid possible null deref if ypclnt_new returns null
Eitan Adler [Thu, 15 Nov 2012 15:06:18 +0000 (15:06 +0000)]
Avoid possible null deref if ypclnt_new returns null

PR: bin/172979
Submitted by: Erik Cederstrand <erik@cederstrand.dk>
Approved by: cperciva
MFC after: 3 days

12 years agoTeach pw(8) about how to use pw/gr API to reduce code duplication
Baptiste Daroussin [Tue, 30 Oct 2012 08:00:53 +0000 (08:00 +0000)]
Teach pw(8) about how to use pw/gr API to reduce code duplication

MFC after: 2 months

12 years agobackout r242319, racy and not done in the right place
Baptiste Daroussin [Mon, 29 Oct 2012 18:06:09 +0000 (18:06 +0000)]
backout r242319, racy and not done in the right place

Reported by: Garrett Cooper  <yanegomi@gmail.com>

12 years agomake pw_init and gr_init fail if the specified master password or group file is
Baptiste Daroussin [Mon, 29 Oct 2012 17:19:43 +0000 (17:19 +0000)]
make pw_init and gr_init fail if the specified master password or group file is
a directory.

MFC after: 1 month

12 years agoDo not treat empty name as an uid 0
Baptiste Daroussin [Mon, 1 Oct 2012 17:00:33 +0000 (17:00 +0000)]
Do not treat empty name as an uid 0

Reported by: Robert Bonomi <bonomi@mail.r-bonomi.com>

12 years agoRemove useless atoi(3), previous strspn(3) makes sure that a_name->val is a
Baptiste Daroussin [Mon, 1 Oct 2012 16:42:07 +0000 (16:42 +0000)]
Remove useless atoi(3), previous strspn(3) makes sure that a_name->val is a
number.
This also allow pw user show to work as expected.

PR: bin/172112
Submitted by: "Ilya A. Arkhipov" <rum1cro@yandex.ru>
MFC after: 1 month

12 years agoMake sure that each va_start has one and only one matching va_end,
Kevin Lo [Fri, 28 Sep 2012 07:51:30 +0000 (07:51 +0000)]
Make sure that each va_start has one and only one matching va_end,
especially in error cases.

12 years agoRemove a reference to CVS and to freefall from a user-facing man page.
Isabell Long [Sat, 15 Sep 2012 16:24:03 +0000 (16:24 +0000)]
Remove a reference to CVS and to freefall from a user-facing man page.

PR: docs/171658
Reported by: Chris Petrik (c dot petrik dot sosa at gmail dot com)
Approved by: gabor (mentor)
MFC after: 5 days

12 years agoRevert user comparison back to user names as some user can share uids (root/toor
Baptiste Daroussin [Tue, 19 Jun 2012 11:39:56 +0000 (11:39 +0000)]
Revert user comparison back to user names as some user can share uids (root/toor
for example)

get the username information from old_pw structures to still allow renaming of a
user.

Reported by: Claude Buisson <clbuisson@orange.fr>
Approved by: des (mentor)
MFC after: 3 weeks

12 years agomdoc: add missing width argument to Bl -tag.
Joel Dahl [Sun, 3 Jun 2012 06:57:47 +0000 (06:57 +0000)]
mdoc: add missing width argument to Bl -tag.

12 years agoA new jail(8) with a configuration file, ultimately to replace the work
Jamie Gritton [Thu, 26 Apr 2012 17:36:05 +0000 (17:36 +0000)]
A new jail(8) with a configuration file, ultimately to replace the work
currently done by /etc/rc.d/jail.

MFC after: 3 months

12 years agoRemove trailing whitespace per mdoc lint warning
Eitan Adler [Thu, 29 Mar 2012 05:02:12 +0000 (05:02 +0000)]
Remove trailing whitespace per mdoc lint warning

Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days

12 years agoWhen using uidstart in /etc/adduser.conf, get the next
Daniel Eischen [Sat, 25 Feb 2012 07:58:59 +0000 (07:58 +0000)]
When using uidstart in /etc/adduser.conf, get the next
available user id and show it in the "Uid [xxx]" prompt.

PR: 163863
Submitted by: Moritz Wilhelmy (mw at wzff dot de)
MFC after: 2 weeks

12 years agoHandle NULL return from crypt(3). Mostly from DragonFly
Kevin Lo [Wed, 22 Feb 2012 06:27:20 +0000 (06:27 +0000)]
Handle NULL return from crypt(3). Mostly from DragonFly

12 years agoreadlink len-1
Kevin Lo [Tue, 14 Feb 2012 10:17:03 +0000 (10:17 +0000)]
readlink len-1

12 years agoRemove unnecessary cast
Kevin Lo [Tue, 14 Feb 2012 10:11:45 +0000 (10:11 +0000)]
Remove unnecessary cast

12 years agoDetect file modification properly by using tv_nsec.
Ed Schouten [Fri, 10 Feb 2012 13:40:32 +0000 (13:40 +0000)]
Detect file modification properly by using tv_nsec.

POSIX 2008 standardizes st_mtim, meaning we can simply use nanosecond
precision to detect file modification.

MFC after: 2 weeks

12 years agoConsensus between bde and pjd seemed to be that if the function names
Guy Helmer [Thu, 26 Jan 2012 20:40:22 +0000 (20:40 +0000)]
Consensus between bde and pjd seemed to be that if the function names
are lined up, then any * after a long type should appear after the
type instead of being in front of the function name on the following
line.

12 years agoMake the comments consistent (capitalization, punctuation, and
Guy Helmer [Thu, 26 Jan 2012 20:35:01 +0000 (20:35 +0000)]
Make the comments consistent (capitalization, punctuation, and
format).

Requested by bde

12 years agoRestore the parenthesis that are necessary around the constant values.
Guy Helmer [Thu, 26 Jan 2012 20:33:08 +0000 (20:33 +0000)]
Restore the parenthesis that are necessary around the constant values.

Requested by bde.

13 years agoFix more disorder in prototypes and constants.
Guy Helmer [Mon, 16 Jan 2012 21:19:23 +0000 (21:19 +0000)]
Fix more disorder in prototypes and constants.
Fix header comments for each section of constants.
Fix whitespace in #define lines.
Fix unnecessary parenthesis in constants.

13 years agoMove struct pidfh definition into pidfile.c, and leave a forward declaration
Guy Helmer [Thu, 12 Jan 2012 22:49:36 +0000 (22:49 +0000)]
Move struct pidfh definition into pidfile.c, and leave a forward declaration
for pidfh in libutil.h in its place.
This allows us to hide the contents of the pidfh structure, and also
allowed removal of the "#ifdef _SYS_PARAM_H" guard from around the
pidfile_* function prototypes.

Suggested by pjd.

13 years agoMore prototype formatting fixes, struct member formatting fixes,
Guy Helmer [Thu, 12 Jan 2012 14:40:25 +0000 (14:40 +0000)]
More prototype formatting fixes, struct member formatting fixes,
and namespace fix for property_find() prototype.

Provided by bde.

13 years agoFix prototype formatting (indentation, long lines, and continued lines).
Guy Helmer [Wed, 11 Jan 2012 22:45:15 +0000 (22:45 +0000)]
Fix prototype formatting (indentation, long lines, and continued lines).

Requested by bde.

13 years agoFix namespace issues with prototype parameter names.
Guy Helmer [Wed, 11 Jan 2012 22:33:41 +0000 (22:33 +0000)]
Fix namespace issues with prototype parameter names.
Add missing prototype parameter names.

Requested by bde.

13 years agoFix forward structure declaration and prototype disorder.
Guy Helmer [Wed, 11 Jan 2012 22:12:45 +0000 (22:12 +0000)]
Fix forward structure declaration and prototype disorder.

Requested by bde.

13 years agoConstify arguments.
Pawel Jakub Dawidek [Wed, 11 Jan 2012 00:31:04 +0000 (00:31 +0000)]
Constify arguments.

13 years agoAdd pidfile_fileno() to obtain the file descriptor for an open
Guy Helmer [Tue, 10 Jan 2012 19:53:25 +0000 (19:53 +0000)]
Add pidfile_fileno() to obtain the file descriptor for an open
pidfile.

13 years agoAdd new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd
Baptiste Daroussin [Thu, 5 Jan 2012 10:40:24 +0000 (10:40 +0000)]
Add new pw_make_v7 to make a passwd line (in v7 format) out of a struct passwd
while here, fix missing parentheses of the return statement of pw_make.

Approved by: des (mentor)

13 years agoSpelling fixes for usr.sbin/
Ulrich Spörlein [Fri, 30 Dec 2011 10:58:14 +0000 (10:58 +0000)]
Spelling fixes for usr.sbin/

13 years ago- document the -l option to usermod
Eitan Adler [Thu, 22 Dec 2011 03:36:54 +0000 (03:36 +0000)]
- document the -l option to usermod

PR: docs/161588
Submitted by: "Luchesar V. ILIEV" <luchesar.iliev@gmail.com>
Approved by: gjb
MFC after: 1 week

13 years agoIn usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
Dimitry Andric [Sat, 17 Dec 2011 23:46:47 +0000 (23:46 +0000)]
In usr.sbin/pw/pw_user.c, use the correct printf length modifier for a
ptrdiff_t.

MFC after: 1 week

13 years agoModify pw_copy:
Baptiste Daroussin [Thu, 15 Dec 2011 22:07:36 +0000 (22:07 +0000)]
Modify pw_copy:
- if pw is NULL and oldpw is not NULL then the oldpw is deleted
- if pw->pw_name != oldpw->pw_name but pw->pw_uid == oldpw->pw_uid
then it renames the user

add new gr_* functions so now gr_util API is similar to pw_util API,
this allow to manipulate groups in a safe way.

Reviewed by: des
Approved by: des
MFC after: 1 month

13 years agoMark the structure fields as const.
Ed Schouten [Sun, 6 Nov 2011 17:20:44 +0000 (17:20 +0000)]
Mark the structure fields as const.

This allows us to simply place these strings as constants in the table
itself, letting the compiler decide to simply merge duplicate strings.

13 years agoBackout r223115 which potentially caused a POLA violation, by restoring
Xin LI [Sun, 31 Jul 2011 03:00:00 +0000 (03:00 +0000)]
Backout r223115 which potentially caused a POLA violation, by restoring
historic behavior (create the default base directory in pw.conf) before
I came up with a better fix for this.

Requested by: nwhitehorn
Approved by: re (kib)

13 years agoDon't attempt to create the base directory when -d is specified.
Xin LI [Wed, 15 Jun 2011 19:09:58 +0000 (19:09 +0000)]
Don't attempt to create the base directory when -d is specified.

MFC after: 1 month

13 years ago- Commit work from libprocstat project. These patches add support for runtime
Stanislav Sedov [Thu, 12 May 2011 10:11:39 +0000 (10:11 +0000)]
- Commit work from libprocstat project.  These patches add support for runtime
  file and processes information retrieval from the running kernel via sysctl
  in the form of new library, libprocstat.  The library also supports KVM backend
  for analyzing memory crash dumps.  Both procstat(1) and fstat(1) utilities have
  been modified to take advantage of the library (as the bonus point the fstat(1)
  utility no longer need superuser privileges to operate), and the procstat(1)
  utility is now able to display information from memory dumps as well.

  The newly introduced fuser(1) utility also uses this library and able to operate
  via sysctl and kvm backends.

  The library is by no means complete (e.g. KVM backend is missing vnode name
  resolution routines, and there're no manpages for the library itself) so I
  plan to improve it further.  I'm commiting it so it will get wider exposure
  and review.

  We won't be able to MFC this work as it relies on changes in HEAD, which
  was introduced some time ago, that break kernel ABI.  OTOH we may be able
  to merge the library with KVM backend if we really need it there.

Discussed with: rwatson

13 years agoDon't duplicate define the stdint types.
David E. O'Brien [Thu, 5 May 2011 14:45:24 +0000 (14:45 +0000)]
Don't duplicate define the stdint types.

13 years agoAdd support for IEE/IEC (and now also SI) power of two notions of
Xin LI [Tue, 12 Apr 2011 22:48:03 +0000 (22:48 +0000)]
Add support for IEE/IEC (and now also SI) power of two notions of
prefixes (Ki, Mi, Gi...) for humanize_number(3).

Note that applications has to pass HN_IEC_PREFIXES to use this
feature for backward compatibility reasons.

Reviewed by: arundel
MFC after: 2 weeks

13 years agoMerge svn+ssh://svn.freebsd.org/base/head@219553
Marcel Moolenaar [Sat, 12 Mar 2011 01:26:04 +0000 (01:26 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@219553

13 years agoStop hard-coding default directory mode as 0777.
Jung-uk Kim [Tue, 8 Mar 2011 20:13:29 +0000 (20:13 +0000)]
Stop hard-coding default directory mode as 0777.

13 years agoexpand_number() needs uint64_t, declare it here if not already declared.
Pawel Jakub Dawidek [Sun, 6 Mar 2011 17:46:06 +0000 (17:46 +0000)]
expand_number() needs uint64_t, declare it here if not already declared.

MFC after: 3 days

13 years agoAdd two new system calls, setloginclass(2) and getloginclass(2). This makes
Edward Tomasz Napierala [Sat, 5 Mar 2011 12:40:35 +0000 (12:40 +0000)]
Add two new system calls, setloginclass(2) and getloginclass(2).  This makes
it possible for the kernel to track login class the process is assigned to,
which is required for RCTL.  This change also make setusercontext(3) call
setloginclass(2) and makes it possible to retrieve current login class using
id(1).

Reviewed by: kib (as part of a larger patch)

13 years agoMerge svn+ssh://svn.freebsd.org/base/head@218816
Marcel Moolenaar [Fri, 18 Feb 2011 21:39:09 +0000 (21:39 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@218816

13 years agoDo not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.
Jung-uk Kim [Fri, 4 Feb 2011 19:49:02 +0000 (19:49 +0000)]
Do not let pw.conf(5) or -M option affect creation of basehome, e.g., /home.
When the basehome does not exist, it creates all intermediate directories as
required, which is logically equivalent to mkdir(1) with -m and -p options.
However, it modifies all intermediate directories, not just the final home
directory unlike mkdir.  This problem was introduced in two revisions, i.e.,
r1.59 (SVN r167919) and r1.60 (SVN r168044).

MFC after: 1 month

14 years agoRemove the advertising clause from UCB copyrighted files in usr.bin. This
Joel Dahl [Sat, 11 Dec 2010 08:32:16 +0000 (08:32 +0000)]
Remove the advertising clause from UCB copyrighted files in usr.bin.  This
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

14 years agoMerge svn+ssh://svn.freebsd.org/base/head@214309
Marcel Moolenaar [Tue, 26 Oct 2010 02:34:47 +0000 (02:34 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@214309

14 years agoA new jail(8) with a configuration file, to replace the work currently done
Jamie Gritton [Tue, 19 Oct 2010 21:32:13 +0000 (21:32 +0000)]
A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.

14 years agomdoc: drop redundant .Pp and .LP calls
Ulrich Spörlein [Fri, 8 Oct 2010 12:40:16 +0000 (12:40 +0000)]
mdoc: drop redundant .Pp and .LP calls

They have no effect when coming in pairs, or before .Bl/.Bd

14 years agoRevert the unrelated patch crept in the previous commit.
Jung-uk Kim [Tue, 5 Oct 2010 18:47:51 +0000 (18:47 +0000)]
Revert the unrelated patch crept in the previous commit.

14 years agoPrefer pmap_unmapbios() over pmap_unmapdev(). The binary does not change
Jung-uk Kim [Tue, 5 Oct 2010 18:38:23 +0000 (18:38 +0000)]
Prefer pmap_unmapbios() over pmap_unmapdev().  The binary does not change
after this because pmap_unmapbios() is a macro for pmap_unmapdev() on amd64.

14 years agoOld patch I had lying around: clean up and use stpcpy(3) instead of
Dag-Erling Smørgrav [Mon, 16 Aug 2010 11:22:12 +0000 (11:22 +0000)]
Old patch I had lying around: clean up and use stpcpy(3) instead of
sprintf(3).

14 years agoMerge svn+ssh://svn.freebsd.org/base/head@211344
Marcel Moolenaar [Sun, 15 Aug 2010 22:09:43 +0000 (22:09 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@211344

14 years agoSimplify expand_number() by combining the (unrolled) loop with the
Dag-Erling Smørgrav [Sat, 14 Aug 2010 14:34:36 +0000 (14:34 +0000)]
Simplify expand_number() by combining the (unrolled) loop with the
switch.  Since expand_number() does not accept negative numbers, switch
from int64_t to uint64_t; this makes it easier to check for overflow.

MFC after: 3 weeks

14 years agoMerge svn+ssh://svn.freebsd.org/base/head@208557
Marcel Moolenaar [Wed, 26 May 2010 04:14:29 +0000 (04:14 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@208557

14 years agomdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
Ulrich Spörlein [Thu, 13 May 2010 12:07:55 +0000 (12:07 +0000)]
mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the
bottom of the manpages and order them consistently.

GNU groff doesn't care about the ordering, and doesn't even mention
CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put
them.

Found by: mdocml lint run
Reviewed by: ru

14 years agomdoc: remove stray and
Ulrich Spörlein [Tue, 11 May 2010 23:08:22 +0000 (23:08 +0000)]
mdoc: remove stray and

Found via: mdocml
Reviewed by: brueffer

14 years agoMerge svn+ssh://svn.freebsd.org/base/head@207793
Marcel Moolenaar [Sat, 8 May 2010 20:08:01 +0000 (20:08 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@207793

14 years agoFinal update to current version of head in preparation for reintegration.
Kirk McKusick [Thu, 6 May 2010 17:37:23 +0000 (17:37 +0000)]
Final update to current version of head in preparation for reintegration.

14 years agoRestore historical behaviour of only executing chflags on files that exist.
Ed Maste [Tue, 4 May 2010 11:34:13 +0000 (11:34 +0000)]
Restore historical behaviour of only executing chflags on files that exist.
This eliminates cosmetic errors of the form "chflags: ...: No such file or
directory" during an installworld to an empty destination.

14 years agoUpdate to current version of head.
Kirk McKusick [Wed, 28 Apr 2010 05:33:59 +0000 (05:33 +0000)]
Update to current version of head.

14 years agoMerge svn+ssh://svn.freebsd.org/base/head@205454
Marcel Moolenaar [Mon, 22 Mar 2010 18:51:56 +0000 (18:51 +0000)]
Merge svn+ssh://svn.freebsd.org/base/head@205454

14 years agoCreate the altix project branch. The altix project will add support
Marcel Moolenaar [Wed, 10 Mar 2010 02:16:04 +0000 (02:16 +0000)]
Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.

14 years agoIFH@204581
Dag-Erling Smørgrav [Thu, 4 Mar 2010 13:35:57 +0000 (13:35 +0000)]
IFH@204581

14 years agoLet the afterinstall target ignore failures from running chflags. This
Scott Long [Thu, 4 Mar 2010 12:35:20 +0000 (12:35 +0000)]
Let the afterinstall target ignore failures from running chflags.  This
allows it to work over NFS, and puts it back into conformance with other
'schg' utlitilties in the system.

Reviewed by: ed

15 years agoFix a few whitespace issues and comment typos that I found while reading
Joel Dahl [Thu, 14 Jan 2010 22:04:08 +0000 (22:04 +0000)]
Fix a few whitespace issues and comment typos that I found while reading
through this file.

15 years agoThe group field is called `gid', not `group'.
Ed Schouten [Thu, 14 Jan 2010 11:03:26 +0000 (11:03 +0000)]
The group field is called `gid', not `group'.

15 years agoRemove login(3), logout(3) and logwtmp(3) from libutil.
Ed Schouten [Wed, 13 Jan 2010 18:59:51 +0000 (18:59 +0000)]
Remove login(3), logout(3) and logwtmp(3) from libutil.

These functions only apply to utmp(5). They cannot be kept intact when
moving towards utmpx. The login(3) function would break, because its
argument is an utmp structure. The logout(3) and logwtmp(3) functions
cannot be used, since they provide a functionality which partially
overlaps.

Increment SHLIB_MAJOR to 9 to indicate the removal.

15 years agoThe last big commit: let usr.sbin/ use WARNS=6 by default.
Ed Schouten [Sat, 2 Jan 2010 11:07:44 +0000 (11:07 +0000)]
The last big commit: let usr.sbin/ use WARNS=6 by default.

15 years agoBuild usr.bin/ with WARNS=6 by default.
Ed Schouten [Sat, 2 Jan 2010 10:27:05 +0000 (10:27 +0000)]
Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.

15 years agoAdd and document the quota_convert function which converts between the
Kirk McKusick [Mon, 28 Dec 2009 22:44:19 +0000 (22:44 +0000)]
Add and document the quota_convert function which converts between the
old 32-bit and the new 64-bit formats.

15 years agoRemove a dead store.
Sean Farley [Sat, 12 Dec 2009 00:11:40 +0000 (00:11 +0000)]
Remove a dead store.

MFC after: 5 days

15 years agoMake pw(8) build without <utmp.h>.
Ed Schouten [Sun, 6 Dec 2009 01:27:28 +0000 (01:27 +0000)]
Make pw(8) build without <utmp.h>.

The size of the username record in utmp files should not influence the
maximum username length. Right now ut_user/ut_name is big enough, so in
this case it's dead code anyway.

15 years agoMake <libutil.h> work when included by itself.
Ed Schouten [Wed, 2 Dec 2009 15:56:18 +0000 (15:56 +0000)]
Make <libutil.h> work when included by itself.

There are several reasons why it didn't work:

- It was missing <sys/cdefs.h> for __BEGIN_DECLS.
- It uses various primitive types that were not declared.

15 years agosigset() is the name of function specified by SUSv4.
Konstantin Belousov [Thu, 26 Nov 2009 13:41:15 +0000 (13:41 +0000)]
sigset() is the name of function specified by SUSv4.
Replace it to avoid conflict.

MFC after: 3 weeks

15 years agoAdd and document new quoat_on and quota_off functions.
Kirk McKusick [Mon, 16 Nov 2009 18:59:04 +0000 (18:59 +0000)]
Add and document new quoat_on and quota_off functions.

15 years agoAdd quota_maxid which returns the maximum user (or group) identifier
Kirk McKusick [Tue, 20 Oct 2009 05:37:54 +0000 (05:37 +0000)]
Add quota_maxid which returns the maximum user (or group) identifier
in an associated quotafile. Needed by repquota.

Bug fix in quota_read.

15 years agoFurther extend the quotafile API.
Dag-Erling Smørgrav [Sat, 26 Sep 2009 23:16:06 +0000 (23:16 +0000)]
Further extend the quotafile API.

15 years agoMerge from head
Dag-Erling Smørgrav [Thu, 17 Sep 2009 16:16:44 +0000 (16:16 +0000)]
Merge from head