From 32b9d99cf4db9ecb9a76672917e3416219051816 Mon Sep 17 00:00:00 2001 From: greatroar <@> Date: Sat, 20 Mar 2021 11:46:58 +0100 Subject: [PATCH] Fix typos in private identifiers --- attrs.go | 6 +++--- sftp.go | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/attrs.go b/attrs.go index 9097a4d8..7020d3a6 100644 --- a/attrs.go +++ b/attrs.go @@ -13,10 +13,10 @@ const ( sshFileXferAttrUIDGID = 0x00000002 sshFileXferAttrPermissions = 0x00000004 sshFileXferAttrACmodTime = 0x00000008 - sshFileXferAttrExtented = 0x80000000 + sshFileXferAttrExtended = 0x80000000 sshFileXferAttrAll = sshFileXferAttrSize | sshFileXferAttrUIDGID | sshFileXferAttrPermissions | - sshFileXferAttrACmodTime | sshFileXferAttrExtented + sshFileXferAttrACmodTime | sshFileXferAttrExtended ) // fileInfo is an artificial type designed to satisfy os.FileInfo. @@ -119,7 +119,7 @@ func getFileStat(flags uint32, b []byte) (*FileStat, []byte) { fs.Atime, b, _ = unmarshalUint32Safe(b) fs.Mtime, b, _ = unmarshalUint32Safe(b) } - if flags&sshFileXferAttrExtented == sshFileXferAttrExtented { + if flags&sshFileXferAttrExtended == sshFileXferAttrExtended { var count uint32 count, b, _ = unmarshalUint32Safe(b) ext := make([]StatExtended, count) diff --git a/sftp.go b/sftp.go index 912dff1d..556cf5cc 100644 --- a/sftp.go +++ b/sftp.go @@ -58,9 +58,9 @@ const ( sshFxNoMedia = 13 sshFxNoSpaceOnFilesystem = 14 sshFxQuotaExceeded = 15 - sshFxUnlnownPrincipal = 16 + sshFxUnknownPrincipal = 16 sshFxLockConflict = 17 - sshFxDitNotEmpty = 18 + sshFxDirNotEmpty = 18 sshFxNotADirectory = 19 sshFxInvalidFilename = 20 sshFxLinkLoop = 21