summaryrefslogtreecommitdiff
path: root/lib/libkvm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index a24aa341cce..6d65e90579f 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kvm.c,v 1.85 2006/02/16 20:48:42 christos Exp $ */
+/* $NetBSD: kvm.c,v 1.86 2006/03/21 23:47:51 christos Exp $ */
/*-
* Copyright (c) 1989, 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
-__RCSID("$NetBSD: kvm.c,v 1.85 2006/02/16 20:48:42 christos Exp $");
+__RCSID("$NetBSD: kvm.c,v 1.86 2006/03/21 23:47:51 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -696,8 +696,9 @@ kvm_open(uf, mf, sf, flag, program)
{
kvm_t *kd;
- if ((kd = malloc(sizeof(*kd))) == NULL && program != NULL) {
- (void)fprintf(stderr, "%s: %s\n", program, strerror(errno));
+ if ((kd = malloc(sizeof(*kd))) == NULL) {
+ (void)fprintf(stderr, "%s: %s\n",
+ program ? program : getprogname(), strerror(errno));
return (0);
}
kd->program = program;
uest once you entered a directorymanu 2002-10-25Turns out that our implementation of STAT wasn't RFC 959 compliant.itojun 2002-10-12* enclose unknown command strings inside a pair of 's to clearly mark thedarrenr 2002-10-11"Command not implemented." is 502, not 501 (RFC959, 4.2.1)darrenr 2002-02-13Fixes for mlsd/mlst standards conformance issues (noted by Robert Elz):lukem 2002-02-01fix previous, and ensure that closedataconn() is only called after dataconn()lukem 2002-01-17reject SIZE request for ascii file if it exceeds 10k.itojun 2001-04-25crank copyrights of files changed this yearlukem 2001-01-09ensure replydirname() do not truncate the names.itojun 2001-01-09make sure we do not return stray " at the end of stirng, like bla"\0.itojun 2000-12-18Features:lukem 2000-12-04in replydirname(), avoid one-byte overrun.itojun 2000-11-16- new ftpd.conf directives:lukem 2000-11-15changes to improve portability:lukem 2000-07-10base64_encode(): separate out the special case for the last 2 bytes, andlukem 2000-07-09- base64_encode(): fix garbled output due to fencepost error. output nowlukem 2000-06-19rewrite method of traversing facttab[]; use size of list to terminatelukem 2000-06-19various fixes suggested by Robert Elz:lukem 2000-06-16include <krb5/krb5.h> before including extern.h, so krb5_context is definedexplorer 2000-06-14major overhaul (just before netbsd 1.5 :-):lukem