Re: Permission scheme: Real world test needed
On Die, 14 Feb 2006, Frank Küster wrote:
> > It cannot be seen already, it is a new question. And we cannot use
> > managedlsr as it is a completely different question.
>
> Of course, that's what I meant: This time we suggest 3775 also if we
> find 1777 or 2777; but upon upgrade, at any time later, we only suggest
> it if we actuall find it.
Ok, so I submitted this:
# see wether we already have asked this question once
db_fget tex-common/managecache seen || true
SEEN="$RET"
if [ $SEEN = true ] ; then
# this question was already shown
# if the permissions are still 3775 we set managecache to true
if [ $PERMS = 3775 ] ; then
db_set tex-common/managecache true || true
db_set tex-common/groupname "$GROUP" || true
else
db_set tex-common/managecache false || true
fi
else
# this question has not been seen, so if the permissions are
# - either the new permissions 3775 as we want to ship them
# - or the permissions as shipped by old tetex versions
# then set the managecache to true, otherwise to false
# we will later change it to 3775 in the true case
if [ $PERMS = 3775 -o $PERMS = 1777 ] ; then
db_set tex-common/managecache true || true
db_set tex-common/groupname "$GROUP" || true
else
db_set tex-common/managecache false || true
fi
fi
db_input low tex-common/managecache || true
db_go
In the test
SEEN = true and PERMS = 3775
should we also check wether all subdirectories have 3775?
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at> Università di Siena
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
VALLETTA (n.)
On ornate head-dress or loose garment worn by a person in the belief
that it renders then invisibly native and not like a tourist at
all. People who don huge colonial straw collie hats with 'I Luv Lagos'
on them in Nigeria, or fat solicitors from Tonbridge on holiday in
Malaya who insist on appearing in the hotel lobby wearing a sarong
know what we're on about.
--- Douglas Adams, The Meaning of Liff
Reply to: