[patch] 3.7.1p2: slogin symlink fixes

Gert Doering gert at greenie.muc.de
Mon Nov 17 04:30:25 EST 2003


Hi,

On Sun, Nov 16, 2003 at 12:53:43AM -0500, YOSHIFUJI Hideaki / ?$B5HF#1QL@?(B wrote:
> >  	-rm -f $(DESTDIR)$(bindir)/slogin
> > -	ln -s ./ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin
> > +	cd $(DESTDIR)$(bindir) && $(LN_S) ssh$(EXEEXT) slogin$(EXEEXT)
> 
> Why not:
>         $(LN_S) ssh$(EXEEXT) $(DESTDIR)$(bindir)/slogin$(EXEEXT)

Because that's not going to work for hard links.  A hard link needs a 
real file to start with, so unless you specify the full path (which
would make the symlink non-local) you need to be in the proper
directory.

gert
-- 
Gert Doering
Mobile communications ... right now writing from * ICE 1611 Berlin -> MUC *




More information about the openssh-unix-dev mailing list