Skip to content

Commit 245c6ea

Browse files
author
Lee Fine
committed
1 parent 84ea2b1 commit 245c6ea

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

RemoteFile/RemoteHandlers/SSHHandler.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,11 @@ public override void CreateEmptyStoreFile(string path, string linuxFilePermissio
340340

341341
if (IsStoreServerLinux)
342342
{
343-
SplitStorePathFile(path, out path, out _);
343+
string pathOnly = string.Empty;
344+
SplitStorePathFile(path, out pathOnly, out _);
344345

345-
linuxFilePermissions = string.IsNullOrEmpty(linuxFilePermissions) ? GetFolderPermissions(path) : linuxFilePermissions;
346-
linuxFileOwner = string.IsNullOrEmpty(linuxFileOwner) ? GetFolderOwner(path) : linuxFileOwner;
346+
linuxFilePermissions = string.IsNullOrEmpty(linuxFilePermissions) ? GetFolderPermissions(pathOnly) : linuxFilePermissions;
347+
linuxFileOwner = string.IsNullOrEmpty(linuxFileOwner) ? GetFolderOwner(pathOnly) : linuxFileOwner;
347348

348349
AreLinuxPermissionsValid(linuxFilePermissions);
349350
RunCommand($"install -m {linuxFilePermissions} -o {linuxFileOwner} {linuxFileGroup} /dev/null {path}", null, ApplicationSettings.UseSudo, null);

0 commit comments

Comments
 (0)