Commit Graph

7933 Commits

Author SHA1 Message Date
wiz 3cdde55f8e Use more markup, remove superfluous Ns calls. 2006-12-23 08:25:44 +00:00
wiz ace0a0e43c New sentence, new line. Improve English. 2006-12-23 07:47:15 +00:00
christos c20e20ce2a From Anon Ymous:
- add __unused
- fix volatile
2006-12-20 16:33:34 +00:00
agc fa94897003 + some minor cosmetic changes
+ rather than using global variables, accessed all over the place, create
a local structure, and pass it down.

+ add a -p argument to denote a prefix, so that it's possible to record
a different directory hierarchy from the one that was scanned.  One
typical use would be:

	# ./veriexecgen -v -d /usr/dest/i386 -a -p /usr/dest/i386 -r -o fingers

to create a fingerprint database called fingers from the files located
in the /usr/dest/i386 hierarchy, but without the leading /usr/dest/i386
prefix:

	# Generated by agc, Tue Dec 19 13:10:34 2006
	/bin/domainname SHA256 12622c8f3698e51f090abf84ce81aaaaa1ed72135291b41a3e7d6c7b6a2a9847
	/bin/chmod SHA256 5c3f8fec48601e0eaf7f47522ad8ff9fabb442b123ada97a71de285b4f6bf658

+ make veriexecgen into a host tool
2006-12-19 21:21:28 +00:00
christos 9450025adc from Anon Ymous: compile with -Wextra 2006-12-18 21:03:29 +00:00
christos c2ea993397 Convert a "(void)&" to a volatile declaration. Also fix the
intstructions[] table terminator in gsp_inst.c so this will compile
with -Wextra.
2006-12-18 20:12:21 +00:00
christos d0e5eb6a35 from Anon Ymous:
Remove a "(void)&" construction: iop is used by the parent
and always set after the vfork().  Also flag some parameters __unused
so this will compile with -Wextra.
2006-12-18 20:11:10 +00:00
bouyer 3697550e70 Don't depend on lubutil if we're building host tools. Fix tools build on
non-NetBSD hosts.
2006-12-16 12:59:16 +00:00
ad 9a12b97e85 Nx 5.0 -> Nx 4.0 2006-12-15 20:25:55 +00:00
he f6b748e0c7 Fix mtree to release the returned strings from flags_to_string()
following the move of it from bin/ls to libutil and the change of
it to return malloc()ed memory.
2006-12-14 20:21:47 +00:00
he 0a97c3f688 Complete the move of string_to_flags() and flags_to_string() from the
bin/ls sources to libutil:
 o Bump libutil minor version number
 o Fix uses to include <util.h> to pick up the function definitions
 o Fix most uses of flags_to_string() to release the now-malloc()ed result
2006-12-14 20:09:35 +00:00
he 29ff6ed16a The "#ifdef UNUSED_BLOCK" in stat_flags.c wasn't so unused after
all -- it was used by the mtree source.  So, instead do an "#ifdef
MTREE", and define that one when building mtree.
2006-12-14 17:54:19 +00:00
reed ce2634c53e This only has one option so get rid of plural "s". 2006-12-14 02:34:32 +00:00
reed 623f8d5ade Add a useful example. 2006-12-14 02:33:18 +00:00
macallan 55d5c3fe24 properly display OF variables that aren't strings 2006-12-10 03:06:25 +00:00
rillig a5acac5748 Added a reference to passwd(1), which is useful to later change a
password.
2006-12-06 21:49:17 +00:00
lukem 287af45b8d Crank copyright.
Whitespace & linewrap consistency tweaks.
2006-12-05 10:26:28 +00:00
lukem 24891c430b Fix method to find pf.os so it works with '-s etc.tgz'.
PR 35185 by Valeriy E. Ushakov.

Don't bother to find pf.conf first; the code was a noisy no-op.
2006-12-05 10:18:41 +00:00
christos 9a150e0221 revert debug flags I accidentally committed before. 2006-12-05 03:52:02 +00:00
agc 221d869ea3 Minor cosmetic changes:
1. use EXIT_SUCCESS and EXIT_FAILURE, rather than 0 or 1, throughout
2. add some comments
3. use descriptive names for variables, so that their use is easily
gleaned.
2006-12-04 21:22:40 +00:00
agc a1ab0bea62 Normally, veriexecgen will treat an error such as a dangling symlink,
or an inability to get the real path, as fatal.

Be a bit more verbose about this in the default case - tell the user
which directory entry caused the failure.

Also introduce a new -W flag, which will warn the user about the
error, but will still continue processing - it treats errors as
warnings, and allows a signatures file to be built.
2006-12-04 07:06:56 +00:00
peter 7682107fa9 Check if /etc/pf.conf and /etc/pf.os exist and copy them if they don't.
Suggested by lukem@.
2006-11-26 12:05:21 +00:00
peter 91c703ae73 Since the -D option doesn't do anything useful at all, remove it. 2006-11-26 11:38:07 +00:00
tsutsui a261787514 Add some macppc specific description. Closes PR port-macppc/34496 by myself. 2006-11-25 15:12:02 +00:00
wiz 09cb1d6f1c s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
christos 1665d5e960 fix spelling of accommodate; from Zapher. 2006-11-24 19:46:58 +00:00
christos ab56b9a702 getdate -> parsedate 2006-11-20 20:33:33 +00:00
christos c8226bf504 getdate is in libutil. 2006-11-17 22:11:28 +00:00
lukem 968ace8d2a /etc/postfix/post-install needs to be 555 not 444. 2006-11-14 00:04:01 +00:00
christos 381520cf11 PR/34979: Scott Ellis: Detect 0 length name and skip it instead of infinite
loop.
2006-11-13 20:24:00 +00:00
ad 048c3d68d9 Tweak output slightly, and fix a bug. 2006-11-13 19:08:52 +00:00
ad 119899c354 Remove authors section, and update history where appropriate. 2006-11-13 16:33:56 +00:00
christos 3a4d16937d compile a file with -Wno-stack-protector since it is using __cmsg_alignbytes()
for a variable on the stack.
2006-11-09 20:33:25 +00:00
ad 1279365222 Fix some minor bugs and improve output slightly. 2006-11-08 23:12:57 +00:00
joerg e8a733de1a Bump pkg_install version to 20061103 for plist processing fix and
more verbosity in pkg_delete.
2006-11-03 09:20:45 +00:00
joerg bab4eecdd4 When processing symlinks in pkg_delete and the call to readlink failed,
it often helps to know why, so use warn instead of warnx.
2006-11-03 09:19:15 +00:00
joerg 5409c36039 If a plist contains @owner or @group entries and first rename failed,
pushout was called with NULL argument. This has the semantic of using a
working directory of "/", even though already read plist entries are
relative to prefix. The calls to chown and chgrp therefore end up with
the wrong arguments for the current directory. To compensate for this,
don't pushout the first time. As plists are not supposed to have
multiple @cwd entries anymore, this could most likely be simplified, but
that is outside the scope of this commit.

Reviewed by agc@
2006-11-03 09:17:24 +00:00
pavel e98941caa4 Change the default shell to /bin/sh. It has most of the usability
advantages of our ksh (emacs line editing). There were objections against
using ksh, because our (pd)ksh is not the real ksh. See also the
discussion on tech-userlevel.

Motivation for changing the default from csh is better interactive
usability and desire to use a standard shell, which is already used for
all the system shell scripts.

Approved by core.
2006-11-02 21:42:08 +00:00
christos 11c53ad61c kill crypto/rmd160.h and crypto/sha2.h, and instead make symlinks to
/usr/include from /usr/include/sys. This makes all the one way hash
header handling identical.
2006-10-30 20:22:53 +00:00
he 2f5213da05 In order to avoid warnings (which is converted to error with -Werror)
about empty bodies in an if-statement, we need to make add some proprocessor
conditionals around these if statements.  FFS byte-swapping is sometimes
compiled out of install-media versions of this program.
2006-10-30 07:03:34 +00:00
peter ba31dc0ca8 - Show statistics immediately, not after a 5 second delay.
- For cbq, cdnr, hfsc and priq: if previous stats aren't available yet
  then don't show the packet/byte rate.
- Place the count check before the delay and after the stats printing.

This fixes PR #32847

ok tron@
2006-10-28 11:43:02 +00:00
elad 28e2a804c9 For now, also mark "file" entries as "indirect". 2006-10-27 22:14:17 +00:00
christos 1ec0eb6725 remove openlog_r/syslog_r; we now have it. 2006-10-26 10:18:31 +00:00
christos d1a5b782c3 buf can never be NULL (jani at xeebioneurope dot de) 2006-10-23 19:44:32 +00:00
christos 9881dfaad3 c99 initializer 2006-10-22 21:24:44 +00:00
christos f6a7372b60 use c99 initializers 2006-10-22 21:09:47 +00:00
christos f80d108fb1 fix initializers 2006-10-22 21:06:19 +00:00
christos 6846f1da94 remove dead code. 2006-10-22 21:05:28 +00:00
christos dae6a9eb32 sprinkle volatile. 2006-10-22 21:00:21 +00:00
christos 6fef5d355e WARNS=4.
- pass lint
- don't use sscanf fgets and fixed length buffers
- always use warnx to report errors.
2006-10-22 20:54:38 +00:00