Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2013 03:50:14 +0000 (UTC)
From:      Devin Teske <dteske@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r252085 - head/usr.sbin/bsdconfig/share/media
Message-ID:  <201306220350.r5M3oEaL063604@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dteske
Date: Sat Jun 22 03:50:14 2013
New Revision: 252085
URL: http://svnweb.freebsd.org/changeset/base/252085

Log:
  Oops, previous revision (r252084) broke non-full-path resolution (e.g.,
  ftp://ftp.freebsd.org or ftp://ftp.freebsd.org/). Now both full-path and
  non-full resolution is working regardless of trailing-slash.

Modified:
  head/usr.sbin/bsdconfig/share/media/ftp.subr

Modified: head/usr.sbin/bsdconfig/share/media/ftp.subr
==============================================================================
--- head/usr.sbin/bsdconfig/share/media/ftp.subr	Sat Jun 22 03:44:49 2013	(r252084)
+++ head/usr.sbin/bsdconfig/share/media/ftp.subr	Sat Jun 22 03:50:14 2013	(r252085)
@@ -661,7 +661,7 @@ f_media_init_ftp()
 			if echo "$rx" | awk -v dir="/${ftp_dir#/}" '
 				BEGIN {
 					found = 0
-					sub("/$", "", dir)
+					if ( dir != "/" ) sub("/$", "", dir)
 				}
 				/^Remote directory: / {
 					sub(/^[^:]*:[[:space:]]*/, "")



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