Module Name: src Committed By: apb Date: Mon Jun 16 22:04:39 UTC 2014
Modified Files: src/usr.sbin/postinstall: postinstall Log Message: Delete trailing slash with "${1%/}", not "${1#/}". To generate a diff of this commit: cvs rdiff -u -r1.172 -r1.173 src/usr.sbin/postinstall/postinstall Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.sbin/postinstall/postinstall diff -u src/usr.sbin/postinstall/postinstall:1.172 src/usr.sbin/postinstall/postinstall:1.173 --- src/usr.sbin/postinstall/postinstall:1.172 Mon Jun 16 08:59:13 2014 +++ src/usr.sbin/postinstall/postinstall Mon Jun 16 22:04:39 2014 @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: postinstall,v 1.172 2014/06/16 08:59:13 apb Exp $ +# $NetBSD: postinstall,v 1.173 2014/06/16 22:04:39 apb Exp $ # # Copyright (c) 2002-2008 The NetBSD Foundation, Inc. # All rights reserved. @@ -150,7 +150,7 @@ bre_quote() unprefix() { [ $# -eq 1 ] || err 3 "USAGE: unprefix dir" - local prefix="${1#/}" + local prefix="${1%/}" prefix="$(bre_quote "${prefix}")" ${SED} -e "s,^${prefix}/,/,"