"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
version: fix reported os/kernel version for windows
albertonybdfe213c4794
diff --git a/lib/buildinfo/osversion_windows.go b/lib/buildinfo/osversion_windows.goindex 2f0a07a7d..bcc903c36 100644--- a/lib/buildinfo/osversion_windows.go+++ b/lib/buildinfo/osversion_windows.go@@ -1,7 +1,6 @@package buildinfoimport (- "fmt""regexp""strings""unsafe"@@ -32,10 +31,10 @@ func GetOSVersion() (osVersion, osKernel string) {}}- // Simplify kernel output: `RELEASE.BUILD Build BUILD` -> `RELEASE.BUILD`- match := regexp.MustCompile(`^([\d\.]+?\.)(\d+) Build (\d+)$`).FindStringSubmatch(osKernel)+ // Simplify kernel output: `MAJOR.MINOR.BUILD.REVISION Build BUILD.REVISION` -> `MAJOR.MINOR.BUILD.REVISION`+ match := regexp.MustCompile(`^(\d+\.\d+\.(\d+\.\d+)) Build (\d+\.\d+)$`).FindStringSubmatch(osKernel)if len(match) == 4 && match[2] == match[3] {- osKernel = match[1] + match[2]+ osKernel = match[1]}}@@ -53,11 +52,6 @@ func GetOSVersion() (osVersion, osKernel string) {}}- updateRevision := getRegistryVersionInt("UBR")- if osKernel != "" && updateRevision != 0 {- osKernel += fmt.Sprintf(".%d", updateRevision)- }-if arch, err := host.KernelArch(); err == nil && arch != "" {if strings.HasSuffix(arch, "64") && osVersion != "" {osVersion += " (64 bit)"