diff options
author | Russ Cox <rsc@golang.org> | 2009-04-13 19:14:09 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-04-13 19:14:09 -0700 |
commit | 3b1ae7db17d35fecb2b43f831e412388ed26bd8c (patch) | |
tree | c5afe79ff2bda2cb15e5b83612048de70bba745c /src/lib/exec.go | |
parent | 4948321bee7a9dfb635db68e40eacf5bed25ebd9 (diff) | |
download | golang-3b1ae7db17d35fecb2b43f831e412388ed26bd8c.tar.gz |
fix error return in Remove
change canexec to canExec.
R=r
DELTA=7 (0 added, 0 deleted, 7 changed)
OCL=27393
CL=27398
Diffstat (limited to 'src/lib/exec.go')
-rw-r--r-- | src/lib/exec.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/exec.go b/src/lib/exec.go index effb46fa4..425b94eb3 100644 --- a/src/lib/exec.go +++ b/src/lib/exec.go @@ -184,7 +184,7 @@ func (p *Cmd) Close() *os.Error { return err; } -func canexec(file string) bool{ +func canExec(file string) bool{ d, err := os.Stat(file); if err != nil { return false; @@ -203,7 +203,7 @@ func LookPath(file string) (string, *os.Error) { // but that would not match all the Unix shells. if strings.Index(file, "/") >= 0 { - if canexec(file) { + if canExec(file) { return file, nil; } return "", os.ENOENT; @@ -219,7 +219,7 @@ func LookPath(file string) (string, *os.Error) { // Unix shell semantics: path element "" means "." dir = "."; } - if canexec(dir+"/"+file) { + if canExec(dir+"/"+file) { return dir+"/"+file, nil; } } |