This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ProFTPD 1.2.9rc2: "missing /var/log/wtmp"


Hello Igor

>if [ ! -d /var/log ] ; then \
>  mkdir -p /var/log ;
>fi
>if [ ! -f /var/log/wtmp ] ; then \
>  touch /var/log/wtmp ;
>fi
>
>FWIW, it'd be safer to also check whether this file is a symlink (i.e.,
>add "-a ! -l /var/log/wtmp" to the test), but this should do for now.

What about a chmod 666 /var/log/wtmp after the touch?

Bruno


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]