Re: realpath prevents nested check from working

2012-08-11 Thread Nicholas Marriott
Hi Ok so it looks like POSIX is stupid here and allows realpath to fail if the target file doesn't exist. Is this enough to fix it? Index: tmux.c === RCS file: /cvs/src/usr.bin/tmux/tmux.c,v retrieving revision 1.112 diff -u -p -r1.

Re: realpath prevents nested check from working

2012-08-03 Thread Nicholas Marriott
It used to always complain of TMUX existed and it was changed to be more clever. I think it's better and we should try to make sure the paths match which is what realpath is meant to do. On Sun, Jul 22, 2012 at 09:16:30AM +0100, Thomas Adam wrote: > On 21 July 2012 20:39, Dylan Alex Simon wrote:

Re: realpath prevents nested check from working

2012-08-03 Thread Nicholas Marriott
Why is realpath failing? Is it called before the tmux-%u directory is created? On Sat, Jul 21, 2012 at 03:39:08PM -0400, Dylan Alex Simon wrote: > I noticed (accidentally) that the check to prevent nesting tmux in the same > server wasn't working. I tracked this down to the fact that $TMUX is >

Re: realpath prevents nested check from working

2012-07-22 Thread Thomas Adam
On 21 July 2012 20:39, Dylan Alex Simon wrote: > I noticed (accidentally) that the check to prevent nesting tmux in the same > server wasn't working. I tracked this down to the fact that $TMUX is > "/tmp//tmux-499/default,917,0" in my first session. Note the double-slash, > because _PATH_TMP is

realpath prevents nested check from working

2012-07-21 Thread Dylan Alex Simon
I noticed (accidentally) that the check to prevent nesting tmux in the same server wasn't working. I tracked this down to the fact that $TMUX is "/tmp//tmux-499/default,917,0" in my first session. Note the double-slash, because _PATH_TMP is "/tmp/". The first time tmux is run, before the socket