From ab20289f957c4f2c21382883a357da66cad31180 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Wed, 3 Sep 2003 15:39:39 +0000 Subject: make an exception for set_shell_history_size that accept -1 as a normal argument --- share/shadow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/shadow.py') diff --git a/share/shadow.py b/share/shadow.py index 36cd03c..6418b0c 100755 --- a/share/shadow.py +++ b/share/shadow.py @@ -51,7 +51,7 @@ def indirect(name, func, type, args): def commit_changes(): for f in FAKE.values(): - if len(f[1]) >= 1 and f[1][0] != -1: + if len(f[1]) >= 1 and (f[1][0] != -1 or f[0].__name__ == 'set_shell_history_size'): f[0](*f[1]) elif len(f[1]) == 0: f[0]() -- cgit v1.2.1