DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
#!/bin/sh
# S80calendar_fix_permissions_bug_230617
# 
# This script will correct the permission bits for the Mozilla
# Calendar (see bug 230617 - "Jan 9 Build will not create new
# Calendar, Event, or Task for *first time* installation") for details.

# Prechecks
if [ -z "${MOZ_PIS_USER_DIR}" ] ; then
    echo "${0}: Internal error: MOZ_PIS_USER_DIR not set."
    exit 1
fi
if [ ${MOZ_PIS_API} -lt 2 ] ; then
    echo "${0}: Internal error: MOZ_PIS_API is ${MOZ_PIS_API}, should be >= 2."
    exit 1
fi

# We run in a seperate process so we are allows to use single-letter
# shell vars (see mozilla/xpfe/bootstrap/init.d/README)
for i in "${HOME}/${MOZ_PIS_USER_DIR}"/*/*.slt/Calendar ; do
    if [ -d "${i}" ] ; then
        if [ ! -r "${i}" -o ! -w "${i}" -o ! -x "${i}" ] ; then
            echo "${0}: Fixing permissions for ${i} ..."
            chmod u+rwx "${i}"
        fi
    fi
done
# EOF.