File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -385,15 +385,15 @@ private async Task PrepareUserForSftp(string username)
385
385
{
386
386
firstParentInChroot = firstParentInChroot . Parent ;
387
387
}
388
- await ProcessUtil . QuickRun ( "chown" , $ "-R { username } :{ SftpUserInventoryGroup } { firstParentInChroot . FullName } ") ;
388
+ await ProcessUtil . QuickRun ( "chown" , $ "{ username } :{ SftpUserInventoryGroup } { firstParentInChroot . FullName } ") ;
389
389
}
390
390
catch ( Exception exception )
391
391
{
392
392
_logger . LogWarning ( exception ,
393
393
"Could not determine first parent of '{dir}' in chroot '{chroot}' or failed to set permissions" ,
394
394
directoryInfo . FullName , chrootDirectory . FullName ) ;
395
395
396
- await ProcessUtil . QuickRun ( "chown" , $ "-R { username } :{ SftpUserInventoryGroup } { directoryInfo . FullName } ") ;
396
+ await ProcessUtil . QuickRun ( "chown" , $ "{ username } :{ SftpUserInventoryGroup } { directoryInfo . FullName } ") ;
397
397
}
398
398
399
399
}
You can’t perform that action at this time.
0 commit comments