Remove && false to enable the getwd syscall as a fallback

This commit is contained in:
David Dworken 2023-02-28 17:44:05 -08:00
parent 8422aa21db
commit 765c1c18d0
No known key found for this signature in database

View File

@ -74,7 +74,7 @@ func getCwdWithoutSubstitution() (string, error) {
}
// Fall back to the syscall to see if that works, as an attempt to
// fix github.com/ddworken/hishtory/issues/69
if syscall.ImplementsGetwd && false {
if syscall.ImplementsGetwd {
cwd, err = syscall.Getwd()
if err == nil {
return cwd, nil