diff options
Diffstat (limited to 'src/pkg/os/getwd.go')
-rw-r--r-- | src/pkg/os/getwd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/os/getwd.go b/src/pkg/os/getwd.go index 49aaea865..4c142ad3a 100644 --- a/src/pkg/os/getwd.go +++ b/src/pkg/os/getwd.go @@ -54,7 +54,7 @@ func Getwd() (string, Error) { if len(parent) >= 1024 { // Sanity check return "", ENAMETOOLONG } - fd, err := Open(parent, O_RDONLY, 0) + fd, err := Open(parent) if err != nil { return "", err } |