Changeset e06f413 for commands.c


Ignore:
Timestamp:
Jan 24, 2011, 10:57:20 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.8, release-1.9
Children:
b03c714
Parents:
74312ad
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:20)
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

    rc7fe23e re06f413  
    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.