aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-07-16 22:38:55 -0700
committerChris Lu <chris.lu@gmail.com>2020-07-16 22:38:55 -0700
commitbefb396892deb7e5fdaefaf2f952bd744cc08ace (patch)
treedf1505ea4ca6359ed8c04e7da2b5df4b4d040119 /weed/command
parent54445b207ddf6de5db128d307ec7a8554e529946 (diff)
downloadseaweedfs-befb396892deb7e5fdaefaf2f952bd744cc08ace.tar.xz
seaweedfs-befb396892deb7e5fdaefaf2f952bd744cc08ace.zip
mount: resolve home directory
fix https://github.com/chrislusf/seaweedfs/issues/1391
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/mount_std.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/mount_std.go b/weed/command/mount_std.go
index 7520de784..56df740c4 100644
--- a/weed/command/mount_std.go
+++ b/weed/command/mount_std.go
@@ -69,7 +69,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
}
filerMountRootPath := *option.filerMountRootPath
- dir := *option.dir
+ dir := util.ResolvePath(*option.dir)
chunkSizeLimitMB := *mountOptions.chunkSizeLimitMB
util.LoadConfiguration("security", false)