mirror_zfs/contrib/initramfs/scripts
Turbo Fredriksson 61ab032ae0 Fix potential global variable overwrite.
In a previous commit (e865e7809e), the
`local` keyword was removed in functions because of bashism.

Removing bashisms is correct, however this could cause variable overwrites,
since several functions use the same variable name.

So this commit make function variables unique in the (now) global name
space.

The problem from the original bug report (see #17963) could not be duplicated,
but it is still sane to make sure that variables stay unique.

Reviewed by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Rob Norris <robn@despairlabs.com>
Signed-off-by: Turbo Fredriksson <turbo@bayour.com>
Closes #18000
2025-12-16 09:15:51 -08:00
..
local-top contrib/initramfs: use LVM autoactivation for activating VGs (#17125) 2025-04-01 16:07:46 -07:00
.gitignore contrib/initramfs: switch to automake 2017-11-07 14:53:57 -08:00
zfs Fix potential global variable overwrite. 2025-12-16 09:15:51 -08:00