os: implement Getwd

This commit is contained in:
Federico G. Schwindt
2021-10-04 23:14:09 +01:00
committed by GitHub
parent 98fbf7ff25
commit b1ec8eb2e0
5 changed files with 47 additions and 2 deletions
+1 -2
View File
@@ -196,9 +196,8 @@ func Lstat(name string) (FileInfo, error) {
return nil, &PathError{"lstat", name, ErrNotImplemented}
}
// Getwd is a stub (for now), always returning an empty string
func Getwd() (string, error) {
return "", nil
return syscall.Getwd()
}
// Readlink is a stub (for now), always returning the string it was given