File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ public sealed class SftpFilesystem : SftpClient, IDokanOperations
66
66
private int _userId ;
67
67
private string _idCommand = "id" ;
68
68
private string _dfCommand = "df" ;
69
- private HashSet < int > _userGroups ;
69
+ private HashSet < long > _userGroups ;
70
70
71
71
private readonly int _attributeCacheTimeout ;
72
72
private readonly int _directoryCacheTimeout ;
@@ -107,7 +107,7 @@ protected override void OnConnected()
107
107
108
108
_userId = GetUserId ( ) ;
109
109
if ( _userId != - 1 )
110
- _userGroups = new HashSet < int > ( GetUserGroupsIds ( ) ) ;
110
+ _userGroups = new HashSet < long > ( GetUserGroupsIds ( ) ) ;
111
111
112
112
113
113
if ( String . IsNullOrWhiteSpace ( _rootpath ) )
@@ -262,12 +262,12 @@ private void CheckAndroid()
262
262
}
263
263
}
264
264
}
265
- private IEnumerable < int > GetUserGroupsIds ( )
265
+ private IEnumerable < long > GetUserGroupsIds ( )
266
266
{
267
267
using ( var cmd = _sshClient . CreateCommand ( _idCommand + " -G " , Encoding . UTF8 ) )
268
268
{
269
269
cmd . Execute ( ) ;
270
- return cmd . Result . Split ( new [ ] { ' ' } , StringSplitOptions . RemoveEmptyEntries ) . Select ( Int32 . Parse ) ;
270
+ return cmd . Result . Split ( new [ ] { ' ' } , StringSplitOptions . RemoveEmptyEntries ) . Select ( long . Parse ) ;
271
271
}
272
272
}
273
273
You can’t perform that action at this time.
0 commit comments