Hi All...

With the latest version of base files (/etc/profile), a permission error (for /tmp) is displayed every time /etc/profile is run without administrators permissions. The following patch prevents this by checking the permissions before trying to set them. So then run once as administrator after updating. This patch is of course only one possible way to resolve the problem.

Thanks,

...Karl

--- profile.orig        2005-05-17 07:31:35.888753400 -0700
+++ profile     2005-05-17 07:33:46.315400700 -0700
@@ -60,17 +60,17 @@
        /bin/find . -type f | while read f; do
                fDest=`echo ${f} | sed -e 's/^\.//g'`
                if [ ! -e "${HOME}${fDest}" -a ! -L "${HOME}${fDest}" ]; then
                        /usr/bin/install -D -p -v "${f}" "${HOME}/${fDest}"
                fi
        done
fi

-if [ -d "/tmp" ]; then
+if [ -d "/tmp" -a `stat -c%a /tmp` != "1777" ]; then
        chmod 1777 /tmp
fi

# Default to unix make mode
MAKE_MODE=unix
export MAKE_MODE

# It is recommended that cvs uses ssh for it's remote shell environment


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

Reply via email to