delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/06/13/05:57:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 13 Jun 2001 10:13:58 +0200
From: Corinna Vinschen <cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: /var/log/lastlog
Message-ID: <20010613101358.A1144@cygbert.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <F11wRhD54wG8nlsjH1d00015778 AT hotmail DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.2.5i
In-Reply-To: <F11wRhD54wG8nlsjH1d00015778@hotmail.com>; from karlm30@hotmail.com on Sun, Jun 10, 2001 at 08:21:19AM -0700

On Sun, Jun 10, 2001 at 08:21:19AM -0700, Karl M wrote:
> Hi All...
> 
> The patch is attached
> 
> ...Karl
> [...]
> --- ssh-host-config.orig	Wed Mar  7 01:38:20 2001
> +++ ssh-host-config	Sun Jun 10 08:12:21 2001
> @@ -433,16 +433,35 @@
>        echo 'ssh  stream  tcp     nowait  root    /usr/sbin/sshd -i' >> 
> "${_inetcnf}"
>      else
>        echo '# ssh  stream  tcp     nowait  root    /usr/sbin/sshd -i' >> 
> "${_inetcnf}"
>      fi
>      echo "Added ssh to ${_inetcnf}"
>    fi
> fi
> 
> +# Create /var/log and /var/log/lastlog if not already existing
> +
> +if [ -f /var/log ]
> +then
> +  echo "Creating /var/log failed\!"
> +else
> +  if [ ! -d /var/log ]
> +  then
> +    mkdir /var/log
> +  fi
> +  if [ -d /var/log/lastlog ]
> +  then
> +    echo "Creating /var/log/lastlog failed\!"
> +  elif [ ! -f /var/log/lastlog ]
> +  then
> +    cat /dev/null > /var/log/lastlog
> +  fi
> +fi
> +
> if [ "${old_install}" = "1" ]
> then
>    echo
>    echo "Note: If you have used sshd as service or from inetd, don't forget 
> to"
>    echo "      change the path to sshd.exe in the service entry or in 
> inetd.conf."
> fi
> 
> echo

Thanks, applied to my local sandbox. I will send it to openssh-unix-dev
as well.

Sorry for the delay,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019