Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rogue mode can't handle usernames with dots in them #62

Open
jorgehatccrma opened this issue Feb 2, 2017 · 0 comments
Open

Rogue mode can't handle usernames with dots in them #62

jorgehatccrma opened this issue Feb 2, 2017 · 0 comments

Comments

@jorgehatccrma
Copy link

If the username have dots in it, then rogue mode doesn't work (can't find the window).

With a server running, when a user with . in the username (e.g. john.smith) issues wemux rogue, we get the following message:

Can't find window wemux-john

(note how there's no .smith in the window name). A window named john.smith gets created, but wemux can't find it, cause it's only searching for the text before the .

I hacked the following change in /usr/bin/wemux (added the second line to replace . with _ in the username):

...
username=`whoami`
username="${username}//./_"
...

and added the corresponding usernames (with _ replacing .) to host_list in /etc/wemux.conf and we could finally get rogue mode to work (pretty nice feature!).

Of course, the hack I present is not a real solution. Ideally, the usernames in /etc/wemux.conf are the real unix usernames. But my bash knowledge is not enough to propose a real patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant