Changeset 9a3cdca


Ignore:
Timestamp:
Jan 24, 2011, 10:57:40 PM (14 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.7
Children:
337383e
Parents:
b35144c
git-author:
David Benjamin <davidben@mit.edu> (01/24/11 00:56:13)
git-committer:
David Benjamin <davidben@mit.edu> (01/24/11 22:57:40)
Message:
Stick the local realm onto the argument of viewuser if needed

A regression caused by 811644f3912f5278edb8dcb964547f041976150e. Now
that owl_function_zuserfilt expects a longuser, its callers need to take
care of adding the realm where needed.

Reported-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Alejandro R. Sedeño <asedeno@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r7013eb9 r9a3cdca  
    23012301{
    23022302  char *filtname;
     2303  char *longuser;
    23032304  if (argc!=2) {
    23042305    owl_function_makemsg("Wrong number of arguments to viewuser command");
    23052306    return NULL;
    23062307  }
    2307   filtname=owl_function_zuserfilt(argv[1]);
     2308  longuser = long_zuser(argv[1]);
     2309  filtname = owl_function_zuserfilt(longuser);
     2310  owl_free(longuser);
    23082311  if (filtname) {
    23092312    owl_function_change_currentview_filter(filtname);
Note: See TracChangeset for help on using the changeset viewer.