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

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