typo /cvs/src/bin/pax/buf_subs.c

2009-12-21 Thread Brad Tilley
# cvs diff -Nup buf_subs.c
Index: buf_subs.c
===
RCS file: /cvs/src/bin/pax/buf_subs.c,v
retrieving revision 1.22
diff -N -u -p buf_subs.c
--- buf_subs.c  27 Oct 2009 23:59:22 -  1.22
+++ buf_subs.c  22 Dec 2009 00:15:18 -
@@ -943,7 +943,7 @@ buf_flush(int bufcnt)
} else if (cnt > 0) {
/*
 * Oh drat we got a partial write!
-* if format doesnt care about alignment let it
go,
+* if format doesn't care about alignment let it
go,
 * we warned the user in ar_write() but this
 means
 * the last record on this volume violates pax
 spec
 */



typo /cvs/src/bin/pax/cache.c

2009-12-21 Thread Brad Tilley
# cvs diff -Nup cache.c
Index: cache.c
===
RCS file: /cvs/src/bin/pax/cache.c,v
retrieving revision 1.18
diff -N -u -p cache.c
--- cache.c 27 Oct 2009 23:59:22 -  1.18
+++ cache.c 22 Dec 2009 00:12:13 -
@@ -267,7 +267,7 @@ name_gid(gid_t gid, int frc)
if ((gr = getgrgid(gid)) == NULL) {
/*
 * no match for this gid in the local group file, put in
-* a string that is the gid in numberic format
+* a string that is the gid in numeric format
 */
if (ptr == NULL)
return("");



typo /cvs/src/bin/pax/file_subs.c

2009-12-21 Thread Brad Tilley
# cvs diff -Nup file_subs.c
Index: file_subs.c
===
RCS file: /cvs/src/bin/pax/file_subs.c,v
retrieving revision 1.31
diff -N -u -p file_subs.c
--- file_subs.c 27 Oct 2009 23:59:22 -  1.31
+++ file_subs.c 22 Dec 2009 00:13:27 -
@@ -988,7 +988,7 @@ file_flush(int fd, char *fname, int isempt)

 /*
  * rdfile_close()
- * close a file we have beed reading (to copy or archive). If we
have
+ * close a file we have been reading (to copy or archive). If we
have
  * reset access time (tflag) do so (the times are stored in arcn).
  */



in6.c: typo in comment

2009-12-21 Thread Holger Mikolon

Index: in6.c
===
RCS file: /cvs/src/sys/netinet6/in6.c,v
retrieving revision 1.82
diff -u in6.c
--- in6.c   4 Jun 2009 19:07:21 -   1.82
+++ in6.c   21 Dec 2009 23:22:14 -
@@ -273,7 +273,7 @@
 * route surely exists.  With this check, we can avoid to
 * delete an interface direct route whose destination is same
 * as the address being removed.  This can happen when removing
-* a subnet-router anycast address on an interface attahced
+* a subnet-router anycast address on an interface attached
 * to a shared medium.
 */
rt = rtalloc1(ifa->ifa_addr, 0, 0);



Distributors are filling cracks and gaps in software systems with simple add-ons

2009-12-21 Thread Jan Poehland
Distributors are filling cracks and gaps in software systems with simple
add-ons

When you purchase a good suit off the rack, it is often tailored to fit your
body.

Unfortunately, "do-all" software systems, like an off-the-rack suit, may not
fit your company perfectly, which can lead to inefficiencies, lack of access
to key data, and even missed profit opportunities.

A tailored solution, as opposed to a full, custom solution:

Increase Sales-Field reps can track orders, inventory and access past
purchases
Save Time and increase versatility-Workers can access data from anywhere
Fewer Service calls-Customers can securely service and access accounts via
web
Instant Credibility-Show professionalism in the field and on the phone
Turn Key Operation-Easy to use, simple to learn and fast to modify
Save Money-save thousands of dollars by not having individual user fees
We have done extensive work with industrial distributors and suppliers to
tailor existing software systems to fit their business.  Our existing
framework of components from within the industry means we can deliver a custom
solution that fits your company at about 20% of the usual cost.

Click here to learn more about our experience and references with industrial
distribution and supply.

Sincerely,

Jan Poehland
Comparatio USA, LLC
4517 Minnetonka Blvd.
Suite 303
St. Louis Park, MN 55416
USA

This is a marketing message.  We respect your right to be removed from this
marketing campaign.  Removal from this email distribution list is
automatically enforced by our email delivery system. Please click here to be
removed.
If this hyperlink comes through in text format or is not visible please hit
reply to this email and type "Remove" in the subject line.  If you have any
problems with this removal link please contact Cindy at 800-757-3715 and we
will handle your request immediately.



Re: snmpd: better support for GETBULK

2009-12-21 Thread Alexander Sabourenkov

Hello.


Could you add few sentences explaining how is it better?


The current implementation
   a) does not support nonzero non-repeaters field
   b) builds the response in a manner that does not conform to
  RFC3416#4.2.3 which results in complex client code
  and sometimes retransmission of the same data.


Proposed implementation fixes both issues.

--

./lxnt



[PATCH] /usr/bin/sort posix patch

2009-12-21 Thread Daniel Dickman
The patch below adds support for sort's missing "-C" option (as per 
POSIX:2008). This option behaves like "-c" except that it suppresses 
output on STDERR.

Index: extern.h
===
RCS file: /usr/cvs/src/usr.bin/sort/extern.h,v
retrieving revision 1.7
diff -u -r1.7 extern.h
--- extern.h26 Jun 2003 00:12:39 -  1.7
+++ extern.h21 Dec 2009 04:36:24 -
@@ -61,7 +61,8 @@
 int optval(int, int);
 voidorder(union f_handle,
int (*)(int, union f_handle, int, RECHEADER *, u_char *, struct 
field *),
-   struct field *);
+   struct field *,
+   int c_warn);
 voidputline(RECHEADER *, FILE *);
 voidputrec(RECHEADER *, FILE *);
 voidrd_append(int, union f_handle, int, FILE *, u_char *, u_char *);
Index: msort.c
===
RCS file: /usr/cvs/src/usr.bin/sort/msort.c,v
retrieving revision 1.22
diff -u -r1.22 msort.c
--- msort.c 27 Oct 2009 23:59:43 -  1.22
+++ msort.c 21 Dec 2009 04:48:43 -
@@ -232,7 +232,8 @@
 void
 order(union f_handle infile,
 int (*get)(int, union f_handle, int, RECHEADER *, u_char *, struct field 
*),
-struct field *ftbl)
+struct field *ftbl,
+int c_warn)
 {
u_char *crec_end, *prec_end, *trec_end;
int c;
@@ -256,13 +257,17 @@
while (get(-1, infile, 1, crec, crec_end, ftbl) == 0) {
if (0 < (c = cmp(prec, crec))) {
crec->data[crec->length-1] = 0;
-   errx(1, "found disorder: %s",
-   crec->data+crec->offset);
+   c_warn ?
+   errx(1, "found disorder: %s",
+   crec->data+crec->offset) :
+   exit(1);
}
if (UNIQUE && !c) {
crec->data[crec->length-1] = 0;
-   errx(1, "found non-uniqueness: %s",
-   crec->data+crec->offset);
+   c_warn ?
+   errx(1, "found non-uniqueness: %s",
+   crec->data+crec->offset) :
+   exit(1);
}
/* Swap pointers so that this record is on place
 * pointed to by prec and new record is read to place
Index: sort.1
===
RCS file: /usr/cvs/src/usr.bin/sort/sort.1,v
retrieving revision 1.34
diff -u -r1.34 sort.1
--- sort.1  16 Aug 2009 09:41:08 -  1.34
+++ sort.1  21 Dec 2009 04:08:01 -
@@ -40,7 +40,7 @@
 .Nd sort or merge text files
 .Sh SYNOPSIS
 .Nm sort
-.Op Fl bcdfHimnrsuz
+.Op Fl bCcdfHimnrsuz
 .Sm off
 .Op Fl k\ \& Ar field1 Op , Ar field2
 .Sm on
@@ -74,6 +74,11 @@
 .Fl c
 produces no output, except the error messages on
 .Em stderr .
+.It Fl C
+Same as
+.Fl c
+except that no error message is sent to
+.Em stderr .
 .It Fl m
 Merge only; the input files are assumed to be pre-sorted.
 .It Fl o Ar output
@@ -96,7 +101,9 @@
 Unique: suppress all but one in each set of lines having equal keys.
 If used with the
 .Fl c
-option, also check that there are no lines with duplicate keys.
+or
+.Fl C
+options, also check that there are no lines with duplicate keys.
 .El
 .Pp
 The following options override the default ordering rules.
Index: sort.c
===
RCS file: /usr/cvs/src/usr.bin/sort/sort.c,v
retrieving revision 1.38
diff -u -r1.38 sort.c
--- sort.c  28 Oct 2009 20:41:39 -  1.38
+++ sort.c  21 Dec 2009 04:52:47 -
@@ -93,7 +93,7 @@
 {
int (*get)(int, union f_handle, int, RECHEADER *, u_char *, struct 
field *);
int ch, i, stdinflag = 0, tmp = 0;
-   char nfields = 0, cflag = 0, mflag = 0;
+   char nfields = 0, cflag = 0, c_warn = 0, mflag = 0;
char *outfile, *outpath = 0;
struct field *fldtab, *ftpos;
union f_handle filelist;
@@ -111,7 +111,7 @@
fixit(&argc, argv);
if (!issetugid() && (outfile = getenv("TMPDIR")))
tmpdir = outfile;
-   while ((ch = getopt(argc, argv, "bcdfik:mHno:rR:t:T:uy:zs")) != -1) {
+   while ((ch = getopt(argc, argv, "bCcdfik:mHno:rR:t:T:uy:zs")) != -1) {
switch (ch) {
case 'b': fldtab->flags |= BI | BT;
break;
@@ -159,8 +159,13 @@
case 'u':
UNIQUE = 1;
break;
+   case 'C':
+   cflag = 1;
+   c_warn = 0;
+   break;
case 'c':
cflag = 1;
+