aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/exec
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-11-09 21:13:17 -0800
committerRobert Griesemer <gri@golang.org>2009-11-09 21:13:17 -0800
commitbaba292998286e5d9011705a9b4173a2ec99c5e0 (patch)
treee5054185cd21c44ee959a8d432b08874a76507fd /src/pkg/exec
parent1698934194f667c4752bb4dfa8615f146fff5154 (diff)
downloadgo-baba292998286e5d9011705a9b4173a2ec99c5e0.tar.xz
- replaced gofmt expression formatting algorithm with
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1026036
Diffstat (limited to 'src/pkg/exec')
-rw-r--r--src/pkg/exec/exec.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pkg/exec/exec.go b/src/pkg/exec/exec.go
index 5f5c33c573..8a19f0e8fa 100644
--- a/src/pkg/exec/exec.go
+++ b/src/pkg/exec/exec.go
@@ -188,7 +188,7 @@ func canExec(file string) bool {
if err != nil {
return false
}
- return d.IsRegular() && d.Permission() & 0111 != 0;
+ return d.IsRegular() && d.Permission()&0111 != 0;
}
// LookPath searches for an executable binary named file
@@ -213,8 +213,8 @@ func LookPath(file string) (string, os.Error) {
// Unix shell semantics: path element "" means "."
dir = "."
}
- if canExec(dir+"/"+file) {
- return dir+"/"+file, nil
+ if canExec(dir + "/" + file) {
+ return dir + "/" + file, nil
}
}
return "", os.ENOENT;