Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Oct 2009 15:58:13 +0100 (CET)
From:      Ulrich Spörlein <uqs@spoerlein.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/140017: umount(8) raise to WARNS=3
Message-ID:  <200910271458.n9REwDvr085769@acme.spoerlein.net>
Resent-Message-ID: <200910271500.n9RF05vG035380@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200910271458.n9REwDvr085769>