[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#228926: /var/lib/dpkg/info/tetex-bin.postinst: line 209: 5576: Permission denied



From: Matt Zimmerman <mdz@debian.org>
Subject: Bug#228926: /var/lib/dpkg/info/tetex-bin.postinst: line 209: 5576: Permission denied
Date: Thu, 22 Jan 2004 21:15:00 -0800

> > I tested a patch and found that with tempfile setting,
> > a generated language.dat was with permission -rw-------
> > 
> > I suspect this is wrong.  Any idea?
> 
> In my example, I showed how to preserve the permissions.

I see, --reference=$LDAT might do the trick.  But,
at least with the current "case" statements, I feel 
it would be very tedious to change every lines in 
that way.

From: Matt Zimmerman <mdz@debian.org>
Subject: Bug#228926: /var/lib/dpkg/info/tetex-bin.postinst: line 209: 5576: Permission denied
Date: Thu, 22 Jan 2004 21:14:26 -0800

> > > langpat=$(echo "$RET" | sed -e 's/, */\|/g')
> > > sed -e "s/^%! \($langpat\)/\1/" < $LDAT > $TMP_LDAT
> > > chown --reference=$LDAT $TMP_LDAT
> > > chmod --reference=$LDAT $TMP_LDAT
> > > mv $TMP_LDAT $LDAT
> > 
> > It's not so easy as that. Notice that the text in debconf's return
> > value, i.e. what is now in the cases statements, is not the same as what
> > we want to replace.
> 
> I guess I would map the debconf values to the corresponding values in the
> file, and then use a procedure like the above.  It's still much simpler.

I'm not sure if Matt is correct or not, but I feel as Frank
might do (but I might be wrong).

If there is a simple solution then please let me know 
but if not I suspect it might be simpler to change
"$LDAT_$$" to "${LDAT_$$" in the present script.

Regards,			2004-1-23(Fri)

-- 
 Debian Developer & Debian JP Developer - much more I18N of Debian
 Atsuhito Kohda <kohda@debian.org>
 Department of Math., Univ. of Tokushima



Reply to: