Skip to content
This repository has been archived by the owner on May 2, 2018. It is now read-only.

Commit

Permalink
os: make return type of FileInfo.Permission() consistent with related…
Browse files Browse the repository at this point in the history
… functions

(uint32 rather than int)

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/1958048
  • Loading branch information
bytbox authored and robpike committed Aug 24, 2010
1 parent d045944 commit 668f05a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pkg/os/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ func (f *FileInfo) IsSymlink() bool { return (f.Mode & syscall.S_IFMT) == syscal
func (f *FileInfo) IsSocket() bool { return (f.Mode & syscall.S_IFMT) == syscall.S_IFSOCK }

// Permission returns the file permission bits.
func (f *FileInfo) Permission() int { return int(f.Mode & 0777) }
func (f *FileInfo) Permission() uint32 { return f.Mode & 0777 }

0 comments on commit 668f05a

Please sign in to comment.