[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svnserv + ssh + ldap

From: Paul Ebermann <Paul-Ebermann_at_gmx.de>
Date: Tue, 03 Aug 2010 15:29:19 +0200

Nico Kadel-Garcia wrote:

>> $ export `gnome-keyring-daemon`
>
> Good, but ouch. Let's try adding a bit of rigor, shall we? First,
> before running such a daemon, always check that it actually exists,
> where you expect it to exist. Running random commands that will handle
> passwords which may have been replaced by who knows what somehwere in
> your $PATH is always a bad idea. So let's use this instead:
>
> if [ -x /usr/bin/gnome-keyring-daemon ]; then
> export `gnome-keyring-daemon`
> fi

Shouldn't this be like this?

     if [ -x /usr/bin/gnome-keyring-daemon ]; then
         export `/usr/bin/gnome-keyring-daemon`
     fi

Otherwise there is not really an improvement to before, only a protection against "file
does not exist".

Paul
Received on 2010-08-03 15:30:00 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.