Blame SOURCES/0372-url-lib-url-lib.sh-nfs_fetch_url-pass-file-directory.patch

712866
From 043d61b54223ed6f9ef7faa2b9c01750272948c3 Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Mon, 14 Mar 2016 15:55:03 +0100
712866
Subject: [PATCH] url-lib/url-lib.sh:nfs_fetch_url(): pass file directory to
712866
 query if nfs is already mounted
712866
712866
Otherwise the returned mount path includes the file with the directory
712866
712866
https://bugzilla.redhat.com/show_bug.cgi?id=1302764
712866
---
712866
 modules.d/45url-lib/url-lib.sh | 2 +-
712866
 1 file changed, 1 insertion(+), 1 deletion(-)
712866
712866
diff --git a/modules.d/45url-lib/url-lib.sh b/modules.d/45url-lib/url-lib.sh
712866
index 12df9b4..f3d152d 100755
712866
--- a/modules.d/45url-lib/url-lib.sh
712866
+++ b/modules.d/45url-lib/url-lib.sh
712866
@@ -106,7 +106,7 @@ nfs_fetch_url() {
712866
     local filepath="${path%/*}" filename="${path##*/}" mntdir=""
712866
 
712866
     # skip mount if server:/filepath is already mounted
712866
-    mntdir=$(nfs_already_mounted "$server" "$path")
712866
+    mntdir=$(nfs_already_mounted "$server" "$filepath")
712866
     if [ -z "$mntdir" ]; then
712866
         local mntdir="$(mkuniqdir /run nfs_mnt)"
712866
         mount_nfs "$nfs:$server:$filepath${options:+:$options}" "$mntdir"