From owner-freebsd-audit Tue Apr 17 0:23:20 2001 Delivered-To: freebsd-audit@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id D69D037B424 for ; Tue, 17 Apr 2001 00:23:17 -0700 (PDT) (envelope-from arr@watson.org) Received: from localhost (arr@localhost) by fledge.watson.org (8.11.3/8.11.3) with SMTP id f3H7Noe79742 for ; Tue, 17 Apr 2001 03:23:50 -0400 (EDT) (envelope-from arr@watson.org) Date: Tue, 17 Apr 2001 03:23:49 -0400 (EDT) From: "Andrew R. Reiter" To: freebsd-audit@freebsd.org Subject: audit work: leave.c usage() fix (more obsd sync) Message-ID: MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1426310504-987492229=:79724" Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1426310504-987492229=:79724 Content-Type: TEXT/PLAIN; charset=US-ASCII hi, attached is a patch again for -current for leave.c. the sync up with obsd was the call usage() if the number of arguments is greater than two. with -Wall compile, it was also, of course, complaining about the register char *cp not being initialized, so I just modified it to be set to NULL. can also be found at http://www.watson.org/~arr/fbsd-audit/usr.bin/leave/ andrew *-------------................................................. | Andrew R. Reiter | arr@fledge.watson.org | "It requires a very unusual mind | to undertake the analysis of the obvious" -- A.N. Whitehead --0-1426310504-987492229=:79724 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="leave.c.diff" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: LS0tIGxlYXZlLmMub3JpZwlUdWUgQXByIDE3IDAwOjExOjM1IDIwMDENCisr KyBsZWF2ZS5jCVR1ZSBBcHIgMTcgMDA6MTY6MTggMjAwMQ0KQEAgLTY5LDcg KzY5LDcgQEANCiB7DQogCXJlZ2lzdGVyIHVfaW50IHNlY3M7DQogCXJlZ2lz dGVyIGludCBob3VycywgbWludXRlczsNCi0JcmVnaXN0ZXIgY2hhciBjLCAq Y3A7DQorCXJlZ2lzdGVyIGNoYXIgYywgKmNwID0gTlVMTDsNCiAJc3RydWN0 IHRtICp0LCAqbG9jYWx0aW1lKCk7DQogCXRpbWVfdCBub3csIHRpbWUoKTsN CiAJaW50IHBsdXNub3csIHRfMTJfaG91cjsNCkBAIC04NCw3ICs4NCw5IEBA DQogCQljcCA9IGZnZXRzKGJ1Ziwgc2l6ZW9mKGJ1ZiksIHN0ZGluKTsNCiAJ CWlmIChjcCA9PSBOVUxMIHx8ICpjcCA9PSAnXG4nKQ0KIAkJCWV4aXQoMCk7 DQotCX0gZWxzZQ0KKwl9IGVsc2UgaWYgKGFyZ2MgPiAyKQ0KKwkJdXNhZ2Uo KTsNCisJZWxzZQ0KIAkJY3AgPSBhcmd2WzFdOw0KIA0KIAlpZiAoKmNwID09 ICcrJykgew0K --0-1426310504-987492229=:79724-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message