diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-08-03 16:53:41 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-08-03 16:53:41 +0100 |
commit | 99547b97ff461f107e03ed5323b6286a66677bce (patch) | |
tree | 28893d0b4d2cbc997e5761d78dab6c19521d9715 /app-admin/drush/files | |
parent | 58bc1eef7fcc2712f4fe69e418f697d6f4d57df4 (diff) |
gentoo auto-resync : 03:08:2023 - 16:53:41
Diffstat (limited to 'app-admin/drush/files')
-rw-r--r-- | app-admin/drush/files/drush-6.7.0-dont-pass-null-to-strtoupper.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app-admin/drush/files/drush-6.7.0-dont-pass-null-to-strtoupper.patch b/app-admin/drush/files/drush-6.7.0-dont-pass-null-to-strtoupper.patch new file mode 100644 index 000000000000..408a271ce38f --- /dev/null +++ b/app-admin/drush/files/drush-6.7.0-dont-pass-null-to-strtoupper.patch @@ -0,0 +1,26 @@ +From 621cb8db059f3dff434dc369ab46faf3a2efa539 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Thu, 3 Aug 2023 08:52:35 -0400 +Subject: [PATCH 1/1] includes/environment.inc: don't pass null to + strtoupper(). + +--- + includes/environment.inc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/includes/environment.inc b/includes/environment.inc +index 7837104..dd2c71d 100644 +--- a/includes/environment.inc ++++ b/includes/environment.inc +@@ -736,7 +736,7 @@ function _drush_get_os($os = NULL) { + // that the path be converted to /cygdrive/c/path, even on DOS or Powershell. + // The special os "RSYNC" can be used to indicate that we want to assume + // "CWRSYNC" when cwrsync is installed, or default to the local OS otherwise. +- if (strtoupper($os) == "RSYNC") { ++ if (isset($os) && strtoupper($os) == "RSYNC") { + $os = _drush_get_os("LOCAL"); + // For now we assume that cwrsync is always installed on Windows, and never installed son any other platform. + return drush_is_windows($os) ? "CWRSYNC" : $os; +-- +2.39.3 + |