Browse Source

Merge pull request #7351 from davecheney/fixedbugs/7350

pkg/transport: remove dependency on pkg/fileutils
Xiang Li 8 years ago
parent
commit
4e114d3549
1 changed files with 1 additions and 2 deletions
  1. 1 2
      pkg/transport/listener.go

+ 1 - 2
pkg/transport/listener.go

@@ -30,7 +30,6 @@ import (
 	"strings"
 	"strings"
 	"time"
 	"time"
 
 
-	"github.com/coreos/etcd/pkg/fileutil"
 	"github.com/coreos/etcd/pkg/tlsutil"
 	"github.com/coreos/etcd/pkg/tlsutil"
 )
 )
 
 
@@ -86,7 +85,7 @@ func (info TLSInfo) Empty() bool {
 }
 }
 
 
 func SelfCert(dirpath string, hosts []string) (info TLSInfo, err error) {
 func SelfCert(dirpath string, hosts []string) (info TLSInfo, err error) {
-	if err = fileutil.TouchDirAll(dirpath); err != nil {
+	if err = os.MkdirAll(dirpath, 0700); err != nil {
 		return
 		return
 	}
 	}