From 3d2f014d4c42413a923824e8d1944976a73876cb Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 29 Mar 2024 12:32:42 -0400 Subject: [PATCH 1/2] fix #2139 Database backup filenames contained a colon character, which is disallowed on Windows; use period instead --- irc/database.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/database.go b/irc/database.go index a20e269e..a815e483 100644 --- a/irc/database.go +++ b/irc/database.go @@ -150,7 +150,7 @@ func retrieveSchemaVersion(tx *buntdb.Tx) (version int, err error) { func performAutoUpgrade(currentVersion int, config *Config) (err error) { path := config.Datastore.Path log.Printf("attempting to auto-upgrade schema from version %d to %d\n", currentVersion, latestDbSchema) - timestamp := time.Now().UTC().Format("2006-01-02-15:04:05.000Z") + timestamp := time.Now().UTC().Format("2006-01-02-15.04.05.000Z") backupPath := fmt.Sprintf("%s.v%d.%s.bak", path, currentVersion, timestamp) log.Printf("making a backup of current database at %s\n", backupPath) err = utils.CopyFile(path, backupPath) From 0c804f8ea364ae7d3bc11ef59d428a0ccc4d24bb Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 29 Mar 2024 13:34:52 -0400 Subject: [PATCH 2/2] bump irctest --- irctest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irctest b/irctest index ee6c56d8..0c5c9136 160000 --- a/irctest +++ b/irctest @@ -1 +1 @@ -Subproject commit ee6c56d84bdd3467795f97f1da2d697ad4999fbd +Subproject commit 0c5c91368a584ea734f91884c031f3893c368e1d