aboutsummaryrefslogtreecommitdiffstats
path: root/share/shadow.py
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2003-09-03 15:39:39 +0000
committerFrederic Lepied <flepied@mandriva.com>2003-09-03 15:39:39 +0000
commitab20289f957c4f2c21382883a357da66cad31180 (patch)
tree979c390b423f1afd50ea4295ff91eb66262eb28b /share/shadow.py
parenta73561fadd0c88f9b0322db93a0e8168efbb5844 (diff)
downloadmsec-ab20289f957c4f2c21382883a357da66cad31180.tar
msec-ab20289f957c4f2c21382883a357da66cad31180.tar.gz
msec-ab20289f957c4f2c21382883a357da66cad31180.tar.bz2
msec-ab20289f957c4f2c21382883a357da66cad31180.tar.xz
msec-ab20289f957c4f2c21382883a357da66cad31180.zip
make an exception for set_shell_history_size that accept -1 as a normal argument
Diffstat (limited to 'share/shadow.py')
-rwxr-xr-xshare/shadow.py2
1 files changed, 1 insertions, 1 deletions
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]()