diff --git a/cmd/api-errors.go b/cmd/api-errors.go index c828a43b0..6566a784b 100644 --- a/cmd/api-errors.go +++ b/cmd/api-errors.go @@ -978,7 +978,7 @@ var errorCodes = errorCodeMap{ }, ErrReplicationNoExistingObjects: { Code: "XMinioReplicationNoExistingObjects", - Description: "No matching ExistingsObjects rule enabled", + Description: "No matching ExistingObjects rule enabled", HTTPStatusCode: http.StatusBadRequest, }, ErrRemoteTargetDenyAddError: { diff --git a/cmd/bootstrap-peer-server.go b/cmd/bootstrap-peer-server.go index 5ef3fb68d..4fb179bb2 100644 --- a/cmd/bootstrap-peer-server.go +++ b/cmd/bootstrap-peer-server.go @@ -26,7 +26,6 @@ import ( "io" "math/rand" "os" - "path/filepath" "reflect" "strings" "sync" @@ -184,7 +183,7 @@ var binaryChecksum = getBinaryChecksum() func getBinaryChecksum() string { mw := md5.New() - binPath, err := filepath.Abs(os.Args[0]) + binPath, err := os.Executable() if err != nil { logger.Error("Calculating checksum failed: %s", err) return "00000000000000000000000000000000" diff --git a/cmd/test-utils_test.go b/cmd/test-utils_test.go index 1e36df60d..cf8165189 100644 --- a/cmd/test-utils_test.go +++ b/cmd/test-utils_test.go @@ -1638,7 +1638,7 @@ func ExecObjectLayerAPIAnonTest(t *testing.T, obj ObjectLayer, testName, bucketN t.Fatal(failTestStr(anonTestStr, fmt.Sprintf("Object API Nil Test expected to fail with %d, but failed with %d", accessDenied, rec.Code))) } - // HEAD HTTTP request doesn't contain response body. + // HEAD HTTP request doesn't contain response body. if anonReq.Method != http.MethodHead { // read the response body. var actualContent []byte