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

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