From owner-freebsd-bugs@FreeBSD.ORG Tue Oct 27 15:00:05 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5BDA106568D for ; Tue, 27 Oct 2009 15:00:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5A5A18FC21 for ; Tue, 27 Oct 2009 15:00:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n9RF0582035381 for ; Tue, 27 Oct 2009 15:00:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n9RF05vG035380; Tue, 27 Oct 2009 15:00:05 GMT (envelope-from gnats) Resent-Date: Tue, 27 Oct 2009 15:00:05 GMT Resent-Message-Id: <200910271500.n9RF05vG035380@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ulrich Spörlein Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D1811065676 for ; Tue, 27 Oct 2009 14:58:15 +0000 (UTC) (envelope-from uqs@spoerlein.net) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id 260E88FC0C for ; Tue, 27 Oct 2009 14:58:14 +0000 (UTC) Received: from acme.spoerlein.net (localhost.spoerlein.net [IPv6:::1]) by acme.spoerlein.net (8.14.3/8.14.3) with ESMTP id n9REwDZJ085770 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 27 Oct 2009 15:58:13 +0100 (CET) (envelope-from uqs@acme.spoerlein.net) Received: (from uqs@localhost) by acme.spoerlein.net (8.14.3/8.14.3/Submit) id n9REwDvr085769; Tue, 27 Oct 2009 15:58:13 +0100 (CET) (envelope-from uqs) Message-Id: <200910271458.n9REwDvr085769@acme.spoerlein.net> Date: Tue, 27 Oct 2009 15:58:13 +0100 (CET) From: Ulrich Spörlein To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: bin/140017: umount(8) raise to WARNS=3 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 15:00:05 -0000 >Number: 140017 >Category: bin >Synopsis: umount(8) raise to WARNS=3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Oct 27 15:00:05 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Ulrich Spörlein >Release: FreeBSD 7.2-STABLE i386 >Organization: >Environment: >Description: >How-To-Repeat: >Fix: --- umount.patch begins here --- diff -r b6811768c714 -r 4ac60f34976d sbin/umount/Makefile --- a/sbin/umount/Makefile Mon Oct 19 16:54:04 2009 +0200 +++ b/sbin/umount/Makefile Mon Oct 19 17:02:14 2009 +0200 @@ -4,7 +4,7 @@ PROG= umount SRCS= umount.c vfslist.c mounttab.c -WARNS?= 0 +WARNS?= 3 MAN= umount.8 MOUNT= ${.CURDIR}/../mount diff -r b6811768c714 -r 4ac60f34976d sbin/umount/umount.c --- a/sbin/umount/umount.c Mon Oct 19 16:54:04 2009 +0200 +++ b/sbin/umount/umount.c Mon Oct 19 17:02:14 2009 +0200 @@ -255,8 +255,8 @@ * mount table again. */ if (sfs == NULL && (delimp = strrchr(name, '@')) != NULL) { - snprintf(buf, sizeof(buf), "%s:%.*s", delimp + 1, delimp - name, - name); + snprintf(buf, sizeof(buf), "%s:%.*s", delimp + 1, + (int)(delimp - name), name); len = strlen(buf); while (len > 1 && buf[len - 1] == '/') buf[--len] = '\0'; --- umount.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: