agpl.py: Exclude the root directory from listers.
[chopwood] / chpwd
diff --git a/chpwd b/chpwd
index 3872715..65ae873 100755 (executable)
--- a/chpwd
+++ b/chpwd
@@ -279,6 +279,7 @@ if __name__ == '__main__':
       ctx = OPTS.context
       if OPTS.user:
         CU.set_user(OPTS.user)
+        CGI.STATE.kw['user'] = OPTS.user
         if ctx is None: ctx = 'userv'
       else:
         D.opendb()