Skip to content

Commit

Permalink
Fix typos in private identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
greatroar committed Mar 20, 2021
1 parent 95591b2 commit 32b9d99
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions attrs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions sftp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32b9d99

Please sign in to comment.