Hi people, the attached patch fixes a minor problem in naughty. A variable was not instantiated locally in naughty.notify() which caused strict.lua to cramp up once again :)
-- $l="\n";$p=q-sub r{rand}sub c{((shift)**2+(shift)**2)<1}while( $i++<=$s){$t++if c r,r}die("Gregor Best, 0xDB9F9A7C, ".($t/$s* 4).$l)-;$s+=ord$$|$_ for split //,$p;srand($s|$$);eval$p;die$@
From 1a1c1fed56892f8dd0c9b229e927d9f6a8be9cdc Mon Sep 17 00:00:00 2001 From: Gregor Best <g...@ring0.de> Date: Sun, 19 Sep 2010 20:01:17 +0200 Subject: [PATCH] naughty: localize obj Signed-off-by: Gregor Best <g...@ring0.de> --- lib/naughty.lua.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/naughty.lua.in b/lib/naughty.lua.in index c378c2a..5d2b637 100644 --- a/lib/naughty.lua.in +++ b/lib/naughty.lua.in @@ -298,7 +298,7 @@ function notify(args) -- replace notification if needed if args.replaces_id then - obj = getById(args.replaces_id) + local obj = getById(args.replaces_id) if obj then -- destroy this and ... destroy(obj) -- 1.7.2.3
pgp217dWZrAqP.pgp
Description: PGP signature