This is the mail archive of the cygwin 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: base-files (was: [1.7] Updated: cygwin-1.7.0-47)


On May  8 10:53, John Morrison wrote:
> On Fri, May 8, 2009 10:32 am, Corinna Vinschen wrote:
> >> Yes, that was one of the reasons I changed it.  The old way to eval the
> >> user's HOME dir could result in the skel files not being created because
> >> the HOME directory already existed.  The non-existance of HOME triggers
> >> writing the skel files.  Now the skel files typically are created
> >> because /home/$USER doesn't exist when bash is started the first time.
> >
> > after a short discussion on cygwin-developers starting here
> > http://cygwin.com/ml/cygwin-developers/2009-05/msg00001.html
> > I'm wondering if it wouldn't be better to default directly to /
> > if the user's home dir can't be created or accessed.  It would
> > also just simplify /etc/profile:
> >
> > --- profile.ORIG        2009-05-08 11:28:55.456869200 +0200
> > +++ profile     2009-05-08 11:31:41.174558600 +0200
> > @@ -64,12 +64,7 @@ if [ ! -d "${HOME}" ]; then
> >                 done
> >         else
> >                 echo "${HOME} could not be created."
> > -
> > -               { [ -d "${TEMP}" ] && HOME="${TEMP}"; } ||
> > -                       { [ -d "${TMP}" ] && HOME="${TMP}"; } ||
> > -                       { [ -d /tmp ] && HOME=/tmp; } ||
> > -                       HOME=/
> > -
> > +               HOME=/
> >                 echo "Setting HOME to ${HOME}."
> >         fi
> >  fi
> 
> OK, I'll also move the umask setting above the creation of home (there was
> comment in the thread).  I don't follow the -developer list.  Would it be
> worth me subscribing?

The umask change isn't actually necessary since Cygwin sets it by
default to 0022 now.  But it doesn't hurt either.  I guess it's
even cleaner to do that.

As for cygwin-developers, you really don't have to subscribe.  I don't
think it's worth to subscribe for non-developers.  It's very low volume
and if something crops up it makes its way to the cygwin or cygwin-apps
list anyway.


Thanks,
Corinna


-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
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]