Commit Graph

7306 Commits

Author SHA1 Message Date
wiz
3a653a2ba9 Sort options and descriptions. Add standard EXIT STATUS section. Bump date. 2005-09-09 20:46:49 +00:00
rpaulo
8dd8736f37 trpt(8) no longer needs to be installed setgid kmem. 2005-09-06 03:05:15 +00:00
rpaulo
3bbe36c3d8 Update for the recent changes of trpt(8) and describe the sysctls.
Bump date.
2005-09-06 03:04:49 +00:00
rpaulo
7c18197a2e If reading values from a live system use sysctls net.tcp.inet.(debug|debx)
and kern.hardclock_ticks. Also, remove the set*gid() calls.
2005-09-06 03:04:15 +00:00
rpaulo
a55d13d962 trsp(8) no longer needs to be sgid kmem. 2005-09-06 03:00:49 +00:00
rpaulo
cbef7237e8 Update for the new changes of trsp(8) and describe the sysctls.
Bump date.
2005-09-06 03:00:30 +00:00
rpaulo
1f649eba90 If reading values from a live system, use sysctls net.ns.spp.(debug|debx). 2005-09-06 02:58:48 +00:00
rpaulo
db74a52bff ANSI func. decl. and de-P(). 2005-09-05 23:17:08 +00:00
hubertf
105b456cb7 Mention pwhash(1) in a few places,
suggested in PR 31125 by Stefan Schumacher.
2005-09-05 03:37:14 +00:00
lukem
898fa7c553 Fix the installation of /etc/defaults/pf.boot.conf so that it works
with -s etc.tgz.
2005-09-04 10:13:15 +00:00
rpaulo
3f51653817 de-__P() and use ANSI function declarations. 2005-09-02 21:26:47 +00:00
elad
d05d5cada8 Use MAXHASHLEN here too. 2005-09-02 17:12:38 +00:00
thorpej
e1afed9c2d Experimental support for extended attributes on UFS1 file systems, using a
backing file per attribute type indexed by inode number to hold the extended
attributes.

This is working pretty well on my test systems, except for the "autostart"
feature.  I need someone with a better handle on the VFS locking protocol
to go over that.

This is a work-in-progress.  There are parts of this that could be re-factored
allowing this approach to be used on other types of file systems.

Adapted from FreeBSD.
2005-08-28 19:37:58 +00:00
elad
aae00d5a54 Add SHA2 support in mtree. 2005-08-24 20:55:41 +00:00
elad
d0b9773c8f Reference cksum(1) only. 2005-08-24 20:49:51 +00:00
kiyohara
188918d76f Fix marge miss. We use 'hw.fwmem.eui64_[hl]i'. 2005-08-23 19:19:51 +00:00
peter
9c1da17e90 pf needs to be started after the network is up, because some pf rules
derive IP address(es) from the interface (e.g "... from any to fxp0").
This however, creates window for possible attacks from the network.

Implement the solution proposed by YAMAMOTO Takashi:
Add /etc/defaults/pf.boot.conf and load it with the /etc/rc.d/pf_boot
script before starting the network. People who don't like the default
rules can override it with their own /etc/pf.boot.conf.
The default rules have been obtained from OpenBSD.

No objections on: tech-security
2005-08-23 12:12:56 +00:00
rpaulo
6443bd996e grfinfo(1) is hp300 specific, so move the man page to the hp300 subdir. 2005-08-20 17:21:29 +00:00
kent
ed574610ee fix compilatio problems on LP64 2005-08-20 15:00:27 +00:00
christos
c4ee9f6d2e 64 bit inode changes 2005-08-19 02:07:18 +00:00
dyoung
54d7d8be9a Remove extraneous #PKG_DEVELOPER=1 line that snuck in with the last
commit.  (Thanks Masao Uebayashi.)
2005-08-19 01:26:59 +00:00
dyoung
2f96ceba5c Change from malloc/strcpy idiom to strdup.
Revamp err, errx, warn, warnx usage.

Misc. cosmetic tweaks.

Make -o bootimage=sysname;filename expect NetBSD architecture names
(x86 -> i386; mac -> {macppc, mac68k}; ppc -> powerpc) for sysname.
2005-08-19 01:24:21 +00:00
dyoung
c3f075faf3 Cosmetic: alphabetize SRCS. Start a new line on each change of
leading letter.
2005-08-19 01:09:54 +00:00
heas
be21025dae Set SIGCHLD to SIG_DFL in cron's child; instead of SIG_IGN, which alters the
behavior of wait() causing cron_pclose() to return bogus status and the logging
of bogus status in debug mode.
2005-08-17 22:35:20 +00:00
he
5d94f47ecb Move local variable declaration to start of block (also start of function).
Fixes build problem for vax.
2005-08-15 06:41:06 +00:00
fvdl
92be7f4643 Fix some wrapping lines. 2005-08-13 17:50:59 +00:00
fvdl
65b1705e76 Add nbtool_config.h include, fixing the tool compile on some platforms. 2005-08-13 17:46:07 +00:00
fvdl
36825d8853 Comment out some currently unimplemented options, and add a few descriptions
for others (from Daniel Watt).
2005-08-13 02:03:48 +00:00
fvdl
3550dc9861 cd9660 support. Written by Daniel Watt, Walter Deignan, Ryan Gabrys,
Alan Perez-Rathke and Ram Vedam.

Prototyping, KNF, WARNS=3 by me.

Note that this is marked experimental for now. It works well enough to
make NetBSD/i386 bootable images, but does need more work.
2005-08-13 01:53:01 +00:00
fvdl
046051d487 Fix a sign warning for WARNS=3. 2005-08-13 01:49:35 +00:00
he
1bb5735b5e Check the return value from mktime() and pass any error up.
*tp > LONG_MAX is never true, so replace that check with a test
for strtol() setting errno == ERANGE (oddly, some ports' build
swallowed this without warning).

There's no guarantee that a time_t stores the same number of bits
as a long, so check for an overflow there as well, and pass any
error up.

Discussed with christos, martin and mrg.
2005-08-12 21:40:35 +00:00
christos
91b1a8d112 patch from Liam Foy to add a -F option to force a user to change her's/his
password at the next login.
2005-08-12 16:22:05 +00:00
christos
ef6897a3a6 Add "by default" (Liam Foy) 2005-08-09 23:27:31 +00:00
nakayama
25cffdf24e Embed machine and cpu architecture correctly by target host environmet,
not by build host.

Pointed out by Davide Zanon and Rui Paulo in current-users@.
2005-08-09 21:49:23 +00:00
christos
c509b6a960 Fix reverse description of expiry/inactive. From Liam J. Foy. 2005-08-08 21:53:17 +00:00
blymn
132bb1fe89 Add tape statistics. 2005-08-07 12:32:38 +00:00
christos
102bb7e88c - eliminate a goto.
- cast more returns to void.
- use waitpid instead of wait() to wait for our process, not accidentally
  wait for other children.
- return exitstatus only if exited, and return the termination signal otherwise.
2005-07-31 17:52:01 +00:00
christos
78a36d519b The language lawyers claim that it is invalid to test a freed pointer, so
don't!
2005-07-30 15:06:43 +00:00
christos
32a16509f3 If the class was not specified, don't print a warning. 2005-07-30 14:35:23 +00:00
christos
42ec3173f1 Don't make it fatal if the login class doe not exist. From Jukka Salmi. 2005-07-29 18:16:21 +00:00
wiz
54fa7b8a6b Various improvements. 2005-07-28 20:23:31 +00:00
peter
cea4f4ef79 Minor tweaks to the usage message:
- better layout for useradd.
- fix a small mistake in -u and wrap long line.
2005-07-27 23:32:02 +00:00
christos
9f01a2d031 Patches from Liam Foy:
- Add new -C option to 'usermod'. This allows a quick way to temporary
  lock a users account. This is similar to how FreeBSD do it using
  'adduser'. This function can be very handy to administrators!
- Import a function to check if the inputted class actually exists. It
  contains my modifications to test whether /etc/login.conf exists
  in the first place. -OpenBSD
2005-07-27 19:09:21 +00:00
christos
24e9d708ff Patches from Liam Foy:
- Add new -C option to 'usermod'. This allows a quick way to temporary
  lock a users account. This is similar to how FreeBSD do it using
  'adduser'. This function can be very handy to administrators!
- Import a function to check if the inputted class actually exists. It
  contains my modifications to test whether /etc/login.conf exists
  in the first place. -OpenBSD

While I am there:

- KNF (long wrapped lines, and spaces after void casts).
- Factor out some common code.
- Fix error messages.
	1. Consistently capitalize them.
	2. Fix err->errx and warn->warnx inappropriate uses.
	3. Use regerror where appropriate.
	4. Don't call warn()/err() to report errors after you trashed errno
	   by calling other syscalls. Save and restore the errno instead,
	   or in the warn() case, call warn() first.
- Fix size_t - int, uid_t - int confusion.
- Pass lint
2005-07-27 19:08:42 +00:00
drochner
b974cae7e2 Allow the test for ISO9660 filesystems to be applied to non-CD devices
and plain file images too. If no TOC can be read, a single track is
assumed which spans the whole thing.
The disklabel will be updated if supported by the device. If not, just
the ISO volume label information will be printed.
2005-07-25 11:26:40 +00:00
peter
dbbbd78e77 Restore a part that was lost in rev. 1.44.
This should stop sushi from dumping core.
2005-07-21 21:48:47 +00:00
agc
c426bea6d7 Commit changes from Liam J. Foy:
- system(), rmdir() sets errno, use it
- Use warnx() if strchr failed, not warn()
- Constify some arguments
- Fix cases when errx()/warnx() should be used instead of err()/warn()
  due to errno not being set.

Group code:
------------
- List members in a neat fashion, separated by commas
- groupmod(): Use find_group_info - consistency
2005-07-20 21:42:58 +00:00
wiz
60027a5523 Grammar fixes. 2005-07-18 14:07:18 +00:00
wiz
c5541497ba Drop trailing whitespace. 2005-07-18 14:06:05 +00:00
hubertf
b7cc645889 Bump version to 20050718 for fixed IGNORE_RECOMMENDS handling. 2005-07-18 09:09:35 +00:00
hubertf
aba8b403bc Fix PR pkg/30658: don't fail for pkgs that were built with IGNORE_RECOMMENDED,
just issue a warning.

Checked by wiz@, no reply from original author (rh@) after several weeks. :(
2005-07-18 09:06:48 +00:00
he
2243c46578 After christos relaxed the tty handling code, we no longer need to
set a tty as a controlling tty in order to use F_SETOWN on it, so
comment out USE_FSETOWNCTTY.
2005-07-17 12:46:51 +00:00
hubertf
673730506c Add support for reading cloop2 compressed filesystem image,
enable by putting VND_COMPRESSION into kernel config file.
Written by Cliff Wright, polished up slightly by me.
2005-07-17 00:08:27 +00:00
hannken
5b2600ba63 Add option `ioaddr=<ioaddr>' to amd64. Already noted in man page.
Approved by: Frank van der Linden <fvdl@netbsd.org>
2005-07-16 10:43:00 +00:00
rtr
c398bfd249 avoid ifconfig <if> "" it serves no purpose
patch from Robert Elz via pr#21110
2005-07-16 08:41:27 +00:00
wiz
e8034ce6cf Sync usage with man page. Use getprogname(). 2005-07-12 09:10:18 +00:00
wiz
827b575644 -i seems to have been renamed to -b, update description. 2005-07-12 09:05:35 +00:00
wiz
e6d8065557 Sort a bit more. 2005-07-12 09:03:10 +00:00
wiz
77d802d694 Sort options, sort sections, long month name in Dd. 2005-07-12 08:59:00 +00:00
wiz
eaa6bf85ad Sync usage with man page. 2005-07-12 08:48:20 +00:00
wiz
172e129d75 Sort options. New sentence, new line. 2005-07-12 08:45:03 +00:00
kiyohara
d7ee32c61f Forgot to commit.
ieee1394 import from FreeBSD.
2005-07-12 03:23:06 +00:00
kiyohara
c1a84a4d12 ieee1394 import from FreeBSD. 2005-07-11 15:29:05 +00:00
lukem
1527bc4c2a Fix a typo in the description of -f. Noted by Jukka Salmi in PR 30713.
Add some missing punctuation.
2005-07-11 00:25:08 +00:00
christos
1a8fb0ada9 Add a -s flag to switch between terminals.
Misc KNF.
2005-07-10 17:57:28 +00:00
isaki
723dc0caf2 Use errx() rather than err() where appropriate. 2005-07-10 07:12:13 +00:00
mrg
d6989eccf4 apply the patch from PR#30680: always print the header in extended
(-x) mode, as it is much easier to see what is going on.
2005-07-07 22:31:45 +00:00
christos
cb1d68978b Patch from Liam J. Foy:
- cleanup sendto code.
- fix usage.
2005-07-05 02:46:36 +00:00
peter
e0de99f875 Remove trailing space, fix a Xref. 2005-07-01 16:18:46 +00:00
christos
6b7013d1ad Change g flag to i as in the PR.
Don't allow interval to be set to > 11 minutes.
Rephrase option blurb.
2005-07-01 15:31:18 +00:00
christos
c36c99ef66 PR/30648: Liam J. Foy: rwhod patch to reduce time interval between broadcasts 2005-07-01 13:07:21 +00:00
tron
7663ad07fa Remove outdated BIND 8 version of named.conf(5). The build now picks up
the correct version from "src/dist/bind/bin/named".
2005-07-01 12:10:43 +00:00
hubertf
390553bef2 cleanup: preserve errno. Needed so err() functions ran after running
cleanup(0) print the correct error message.
2005-06-29 01:40:42 +00:00
hubertf
9a9bdaa985 Fix 'pkg_add -R' handling - not registering really means not touching
the pkgdb too - useful for pkg_add as non-root!
2005-06-29 01:39:37 +00:00
peter
df0caa2637 Remove (pf)spamd. Its right to exist in NetBSD has been questioned since it
appeared and whether it's really part of pf or not is still unclear. Looking
at the other *BSDs it seems that they have left out spamd when importing pf,
and now we do that too. Also, the name conflicted with another more popular
used tool, after the rename to pfspamd it was left with completely unusable
documentation which apparently no-one wanted to fix.

A port of the latest spamd will be imported into pkgsrc soon.

Suggested by several people, no objections on last proposal on tech-userlevel.
2005-06-27 20:32:39 +00:00
junyoung
632e7ed58f Remove a unnecessary semicolon and trailing spaces. 2005-06-27 12:07:46 +00:00
christos
c40b82ea42 constify. 2005-06-27 03:10:32 +00:00
wiz
9dda894764 Dd wants long name of the month, not the three-letter one. 2005-06-26 13:12:07 +00:00
peter
c14c7a6bb6 - Use the timer* macros from sys/time.h, no need to invent a new time add
function if it already exists.
- Improve a few function/variable names and use EXIT_FAILURE.
2005-06-24 13:47:30 +00:00
christos
a8b658e375 Initialize events not revents. Noted by Peter Postma. The timer changes he
can make himself :-)
2005-06-24 13:24:23 +00:00
christos
f17eeccada Fixes from Liam J. Foy to use poll, and proper signals. (from OpenBSD)
While there, ansify, and fix const abuse.
2005-06-24 13:22:09 +00:00
fvdl
b14624e508 Pull in DIP_ADD from sys/ufs/ufs/inode.h and use it, to prevent bad lvalue
assignment warnings/errors from gcc4.
2005-06-23 00:53:16 +00:00
dyoung
9063402978 Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD.  Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]).  Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
2005-06-22 06:14:51 +00:00
peter
a9b411c198 Change all .Xr config 8 to .Xr config 1, following the recent move of
config from usr.sbin -> usr.bin.

Reviewed by wiz.
2005-06-20 13:25:23 +00:00
salo
bb837eff67 Monitor mode requires firmware version 1.0.4 or newer. Bump date.
ok <sekiya>
2005-06-20 09:49:27 +00:00
sekiya
3b3daf0a90 Add "monitor" to list of valid modes. No functional change. 2005-06-20 09:06:40 +00:00
lukem
aa159e4a50 ypdb_open():
* Clarify what it does (adds YPDB_SUFFIX if it's missing).
* Add some explicit pathname length checks and display a warning if exceeded.
2005-06-20 00:29:42 +00:00
lukem
cdd4868c29 tweak filename length check 2005-06-20 00:08:35 +00:00
lukem
a0b1a25618 snprintf NUL terminates, so there is no need to explicitly do it afterwards 2005-06-19 23:43:51 +00:00
blymn
21cbe2316b Fix up the adding of static routes, incorrect parameters were being passed
to the route command.
2005-06-19 05:04:34 +00:00
lukem
365a6c8313 Convert from tmpnam()/open() -> snprintf()/mkstemp(); the latter
avoids a linker warning about the use of tmpnam().
2005-06-18 11:07:26 +00:00
wiz
95c82c980c Non-argument options in SYNOPSIS belong before options with arguments.
New sentence, new line.
2005-06-17 18:22:18 +00:00
peter
97c5e2ee72 - Document the -i flag (PR/26684)
- Add arguments to the relevant flags.
2005-06-17 17:49:07 +00:00
peter
f1843b15c3 - add -D to usage
- use getprogname()
- sort options (usage, synopsis and description)
- add `Ar conf_file' to -f option (description)

From Kouichirou Hiratsuka in PR/26532.
2005-06-17 12:02:00 +00:00
agc
6fdfc9ef36 Be consistent when deleting a non-existent group - tell if the group is
non-existent.

Problem noted by Geert Hendrickx, fix from Liam J. Foy.
2005-06-14 18:29:58 +00:00
peter
960f4edd01 The default hops is not 30, but is taken from the net.inet.ip.ttl sysctl
variable.  Fixes PR/30209 from Jed Davis.
2005-06-14 13:55:59 +00:00
dyoung
00218a63cc Oops, straggler: #include <nbinclude/sys/disklabel.h> if we're
building a host-tool.

XXX In hp300_setboot, quiet -Wunitialized: initialize secsize to
XXX HP300_SECTSIZE.  Is this correct?
2005-06-12 21:38:12 +00:00
dyoung
dba4661556 Build hp300 support into installboot(8). 2005-06-12 20:25:26 +00:00
dyoung
a039894d70 For portability, use 'unsigned int' instead of 'uint'. 2005-06-12 20:21:20 +00:00
he
46892c9e37 Initialize class and node in modify_single(), as their initial assignment
appears to depend on the passed function parameters.
2005-06-11 18:42:56 +00:00
lukem
b3a34b7256 Support MKINET6=no building after the -Wuninitalized fix.
Noted by Jukka Salmi in email.
2005-06-07 22:21:57 +00:00
he
07950b9fb6 Add initialization of a local variable to appease -Wuninitialized.
Marked with XXXGCC for hpcarm (found while compiling for it).
It appears that the reason is that gcc for this target is not able
to determine unchanging complementary conditionals and sort out the
corresponding assignment / use.
2005-06-07 14:01:49 +00:00
he
e670882cec Initialize a local variable in ufs_getlbns() to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:54:55 +00:00
he
0590642883 Initialize a local variable (bbinfop) to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:49:31 +00:00
he
63104d4c13 Initialize s, name and name_end in load_env() to appease -Wuninitialized.
Marked with XXXGCC for sparc64 (found while compiling for it).

Reviewed by lukem.
2005-06-07 13:43:52 +00:00
he
7cc15c3097 Initialize various local variables (clinfo, fltrinfo) to appease
-Wuninitialized.  Found while compiling for sun2.

Reviewed by lukem.
2005-06-07 13:39:37 +00:00
chs
7bbdd188e1 appease gcc -Wuninitialized on hp700. 2005-06-05 19:08:28 +00:00
thorpej
5ecc953bdb config and genassym are not sysadmin tools, they are development tools.
As such, they don't belong in /usr/sbin, but rather /usr/bin.  Move them
there.
2005-06-05 18:19:52 +00:00
wiz
51a21e357b Add hp700 to supported list. Bump date. 2005-06-03 20:22:45 +00:00
lukem
616bb5ee8e appease gcc -Wuninitialized 2005-06-02 11:29:01 +00:00
lukem
274427706d Rewrite method used to determine the ethernet address of the desired
interface to not use uninitalized variables.
Bug crept in in conversion to getifaddrs().
Detected with gcc -Wuninitalized.
2005-06-02 11:27:44 +00:00
lukem
311c22130d appease gcc -Wuninitialized 2005-06-02 09:47:37 +00:00
lukem
1fab072e48 appease gcc -Wuninitialized 2005-06-02 09:42:57 +00:00
lukem
14e2784ec2 Remove an effectively unused variable.
Appease gcc -Wuninitialized.
2005-06-02 09:41:12 +00:00
lukem
0fc9160967 appease gcc -Wuninitialized 2005-06-02 09:32:57 +00:00
lukem
677504d9ca Test the correct pointer 'rfl' rather than an uninitialized 'fl' when
determining whether the lock was a LOCK_V4 or not.
Detected with gcc -Wuninitialized.
2005-06-02 09:30:27 +00:00
lukem
f604dfed13 WARNS=3 2005-06-02 09:21:01 +00:00
lukem
2a7d51e439 appease gcc -Wuninitialized and WARNS=3 in one swoop. 2005-06-02 09:20:37 +00:00
lukem
90b888928b appease gcc -Wuninitialized 2005-06-02 09:18:14 +00:00
lukem
68b1911850 appease gcc -Wuninitialized 2005-06-02 06:54:02 +00:00
lukem
c8e07a4ef7 appease gcc -Wuninitialized 2005-06-02 05:58:24 +00:00
lukem
9b668c37e7 Ensure s is initialized before testing (none of the sockets may be ready
so it might not be setup).
Detected with gcc -Wuninitialized.
2005-06-02 05:57:03 +00:00
lukem
bbd17ef8af Don't attempt to use an uninitialized variable in a debug message.
Detected with gcc -Wuninitialized.
2005-06-02 05:54:44 +00:00
lukem
b38b7ffb5c Don't try to use an uninitialized variable.
Detected with gcc -Wuninitialized.
2005-06-02 05:12:41 +00:00
lukem
1363df60c1 Don't try to use an uninitialized variable.
Detected with gcc -Wuninitialized.
2005-06-02 05:10:22 +00:00
yamt
261b58bea9 allow QSTRING for make variable names for eg. "COPTS.somefile.c". 2005-06-01 12:32:57 +00:00
christos
4ac0cb602f add genassym 2005-06-01 03:22:56 +00:00
wiz
7a9582b62a Spread some more unsigned for less casts. 2005-05-31 22:29:41 +00:00
wiz
0ba4110751 Move unsigned to where it belongs, to remove a cast. 2005-05-31 21:03:58 +00:00
christos
99f2d4f70b Move genassym.sh.8 from src/share/man/man8 to here. 2005-05-31 11:35:54 +00:00
christos
857e3fb66b Add non-tool version of genassym. 2005-05-31 03:48:43 +00:00
wiz
8529448f16 Comment out too noisy warning. 2005-05-30 19:44:03 +00:00
wiz
1723911d3c Add ranges support to the pkg_* tools. See mail on tech-pkg or
pkg_info(1) for details.
Co-production with dillo@.
Bump PACKAGE_TOOLS_VERSION to 20050530.
2005-05-30 13:10:14 +00:00
christos
68a1fbb811 catch up with kernel's constification. 2005-05-30 07:24:31 +00:00
minskim
773938ed0f If a pattern does not have any suffix, assume that it matches both
".tbz" and ".tgz".  This allows to install binary package dependencies
that are not exact matches, but satisfy requirements.

Bump version to 20050529.
2005-05-29 19:16:18 +00:00
kleink
bcbb5c6578 Include <sys/time.h> for struct timeval. 2005-05-20 18:01:46 +00:00
chs
2438f5c3ad add hp700 support. 2005-05-14 14:46:21 +00:00
rillig
360e66cfd6 Output the error string when renaming a dependency file fails. This has
happened to me when I had a misnamed directory in the pkgdb directory.
2005-05-10 00:06:57 +00:00
augustss
56cfb488eb Print serial number if there is one. 2005-05-08 08:12:45 +00:00
wiz
72bce79312 Update reference from Packages.txt to doc/pkgsrc.txt. 2005-05-07 22:43:21 +00:00
wiz
968dbe95c1 Instead of exec(2)ing rmdir(1), just use rmdir(2).
Reviewed by dillo.
2005-05-07 15:09:41 +00:00
wiz
0ae4504a04 Fix Dq argument, which somehow ended up on the next line. 2005-05-06 23:02:39 +00:00
wiz
756bc811ee Document the vulnerable subdir.
Reviewed by dillo and rillig.
Some minor fixes while I am here. Bump date.
2005-05-06 22:45:56 +00:00
lukem
c0b68cb4cf Test USE_INET6 instead of MKINET6 for various apps.
Part of PR 30092 from Jukka Salmi.
2005-05-01 07:26:29 +00:00
yamt
351efcca0f when checking timestamp, check tv_nsec as well. 2005-04-28 08:44:49 +00:00
perseant
127b043e58 Allow exports of LFS filesystems. 2005-04-27 20:32:41 +00:00
lukem
ea2bd1f523 If /etc/ssh/sshd_config contains the following deprecated options,
comment them out:
	rhostsauthentication
	verifyreversemapping
	reversemappingcheck
2005-04-26 01:07:35 +00:00
christos
f6a8412c23 Disable MAP_NIS and MAP_HESIOD. Set by a command line switch. 2005-04-23 18:53:52 +00:00
christos
beb4d24e39 Adjust to new am-utils. 2005-04-23 18:41:43 +00:00
tron
92570d0dfc Remove copy of manual page created during build. 2005-04-19 08:42:54 +00:00
christos
b971501348 make master() return void. 2005-04-19 03:40:00 +00:00
hubertf
a958e20048 For -L, mention that files that were dynamicallt created upon installation
(@exec, ...) are not listed.

Based on patch by Peter Bex <Peter.Bex@student.kun.nl>
2005-04-18 12:28:46 +00:00
lukem
8232ca0162 Tweaks for the move of postinstall from /etc to /usr/sbin 2005-04-17 23:12:40 +00:00
hannken
6cb4c22637 Support user controllable flags for the snapshot driver:
- Add FSSIOFSET and FSSIOFGET ioctl() to set/get the flags.
- Add FSS_UNCONFIG_ON_CLOSE flag to unconfigure the snapshot device
  on the last close.

Reviewed by: Jason R. Thorpe <thorpej@netbsd.org>
2005-04-17 16:28:26 +00:00
lukem
5cae62926d do_postinstall() is now unnecessary; remove it.
If extracting -s etc.tgz to a temporary directory, don't run the
embedded etc/postinstall since it doesn't exist anymore.

Remember the original SRC_DIR passed in (e.g, "-s etc.tgz") and
display that in the suggested "fix" message, rather than a temporary
path to the extracted etc.tgz which won't be correct for the next run.
2005-04-17 15:38:34 +00:00
lukem
9358e88bbf Update for move to /usr/sbin.
Add a HISTORY.
2005-04-17 15:27:23 +00:00
lukem
5c5750a595 Move /etc/postinstall (and the etc.tgz set) to /usr/sbin/postinstall
(and the base.tgz set).
2005-04-17 15:15:48 +00:00
tron
20442260d4 Remove copy of manual page created during build. 2005-04-13 17:51:12 +00:00
jwise
58015a4d36 Finally, spamlogd -> pfspamlogd, for consistency. 2005-04-12 14:44:10 +00:00
jwise
f876c1012e spamd.conf is now pfspamd.conf. 2005-04-12 14:39:39 +00:00
jwise
200b4f7e06 Now that we can override the name of /etc/spamd.conf, make it /etc/pfspamd.conf. 2005-04-12 14:36:15 +00:00
jwise
88573cf3f3 Pass in path to /etc/spamd.conf in CPPFLAGS. 2005-04-12 14:34:57 +00:00
jwise
a8293ab76d Now that we can specify the chroot location, make it /var/chroot/pfspamd. 2005-04-12 14:23:26 +00:00
jwise
aac5bfbda9 Pass in a value for SPAMD_CHROOT in CPPFLAGS, to specify the path to the
chroot dir spamd will use.
2005-04-12 14:21:20 +00:00
jwise
d32dabfd88 Per discussion on tech-userlevel and tech-security, install `spamd',
`spamd-setup', and `spamdb' as `pfspamd', `pfspamd-setup', and `pfspamdb'.

To quote Steven M. Bellovin:

  This [having a program in basesrc with the same name as a widely used and
  completely different program in pkgsrc] is a seriously bad idea; it
  violates the rule of least surprise.  That's bad enough in normal
  situations; here, we're talking about security.  You do *not* want to
  confuse people about security features; they're hard enough to get right
  as is.
2005-04-11 22:34:18 +00:00
christos
2f3bdfce80 Don't ignore SIGCHLD, because we are not going to get kqueue notifications
about it if we do.
2005-04-09 20:14:55 +00:00
dsl
6b5922eb36 WARNS=3 seems to work for me 2005-04-09 13:13:32 +00:00
atatat
e45456b0af Remove the date from the generated resolv.conf file, since changes to
this file are tracked by /etc/security, making it (the backup) get
needlessly updated when you go to and from work every day.
2005-04-09 02:14:52 +00:00
atatat
26201c11b4 If the passwd entry is not found for a lastlog entry, cons up a fake
struct passwd where pw_name is the numeric uid in parentheses.

If -n is specified more than once, also print the user numerically
(ie, uid instead of username).
2005-04-09 02:13:20 +00:00
tron
9f15a6aa01 Fix bad format string which broke the build on LP64 platforms. 2005-04-07 20:22:40 +00:00
agc
8313edf555 Do some Common Subexpression Elimination when testing for valid characters
in login and group names.
2005-04-05 22:54:26 +00:00
peter
943430a954 Allow '_', '.' and '-' in group names, like in login names.
Fixes problem with groupadd(8) for _pflogd; pointed out by Jukka Salmi.

Approved by christos.
2005-04-05 22:03:57 +00:00
dmcmahill
ad90bf7a93 Fix a minor bug in the estimation of required disk space. In particular
make sure we use a data type which is big enough.  This fixes a problem
where pkg_add-ing of a binary package which is between 512 Mb and 1 Gb
failes because the estimated required disk space is negative due to over
flowing in the calculation
2005-04-05 16:37:50 +00:00
peter
6e4d82adbb Enable pflogd(8). 2005-04-04 19:11:18 +00:00
christos
b97cb66e62 - KNF
- Fix mmap call arguments and return value.
- Sprinkle const
2005-04-03 17:27:15 +00:00
christos
3348f64feb - KNF
- Sprinkle const
- Fix mmap call [MAP_PRIVATE], return [MAP_FAILED]
- Don't clobber errno.
- Use getprogname/setprogname
2005-04-03 17:21:29 +00:00
christos
71abc767dd Use SA_NOCLDWAIT instead of catching the signal and waiting. Avoids signal
races the easy way.
2005-03-30 15:19:10 +00:00
thorpej
630187918a No need to emit vfs_list_initial[] any more. 2005-03-29 02:42:09 +00:00
martin
58a5eedc83 If SMALLPROG is set, do not build in PAM support. While there, depend
USE_INET6 on SMALLPROG/SMALLPROG_INET6 like ftp does it.
This fixes the build of install media (pc532 and sparc64) that include
ppp support.
2005-03-22 22:20:27 +00:00
hubertf
ca150f1c8a Document where to get firmware binaries (pkgsrc!) 2005-03-21 20:53:07 +00:00
hubertf
be04a114e9 Bump PKGTOOLS_VERSION to today's date to allow telling in which version
PR 24744 was fixed (affects lib/ftpio.c).
2005-03-18 00:12:35 +00:00
hubertf
fdbe9a372b Address PR pkg/24744 by Jarmo Jaakkola <jarmo.jaakkola@iki.fi>:
* ftp.fi.netbsd.org returns "257" in return to a "cd" command, accept that
   (in addition to 250 and 550). Seems to be allowed per RFC 959.
 * Make buffer for reply bigger (not too big, as it may hit performance).
2005-03-18 00:01:11 +00:00
itojun
522016be88 plug memory leak. Patrick Latifi 2005-03-16 05:05:06 +00:00
xtraeme
cf66608ca4 Kill __P(), use ANSI function declarations; WARNS=3 2005-03-16 02:56:18 +00:00
xtraeme
baf27f3e61 Kill __P(), final round. 2005-03-16 02:55:10 +00:00
xtraeme
7e70b71d91 Kill __P(), use ANSI function declarations, constify; WARNS=3 2005-03-16 02:53:55 +00:00
xtraeme
c6e5881985 Kill __P(), use ANSI function declarations; WARNS=3 2005-03-16 02:08:52 +00:00
xtraeme
4d3d91045c Kill __P(), use ANSI function declarations, constify; WARNS=3 2005-03-16 02:04:51 +00:00
xtraeme
1107a12cd0 Kill __P(); WARNS=3 2005-03-16 01:44:46 +00:00
xtraeme
05b0c4c257 Kill __P(), use ANSI function declarations; WARNS=3 2005-03-16 01:43:06 +00:00
xtraeme
3ad824f936 Kill __P(), use ANSI function declarations, constify; WARNS=3 2005-03-16 01:41:20 +00:00
xtraeme
f7c9c96acb Use ANSI function declarations, constify; WARNS=3 2005-03-16 01:34:11 +00:00
peter
9843641178 Change BINDIR to /sbin and support MKDYNAMICROOT. 2005-03-15 17:45:11 +00:00
peter
f08689a2d1 Add build glue for pflogd(8). 2005-03-15 16:32:47 +00:00
peter
3041afaec2 Add a small replacement for strtonum(). 2005-03-15 16:28:29 +00:00
peter
0a9aa9779a Install pf(4) examples. Reviewed by yamt@.
Thanks to hubertf@ for the reminder.
2005-03-15 16:05:03 +00:00
briggs
6089355b00 If -d (debug mode) is specified on the command line, include
LOG_PERROR in openlog() to send log output to stderr as well.
Suggested by Darrin Jewell.
2005-03-15 04:54:59 +00:00
rillig
b9387c8736 Never access argv[i+1] before you know that argv[i] != NULL. Approved
by wiz.
2005-03-11 22:52:04 +00:00
kleink
3652d706d4 Don't declare errno locally. 2005-03-09 22:09:36 +00:00
christos
192c2eccf6 Add -lcrypt where -lcrypto is specified. 2005-03-09 03:11:22 +00:00