summaryrefslogtreecommitdiff
path: root/src/pkg/exec/exec.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/exec/exec.go')
-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 5f5c33c57..8a19f0e8f 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;