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

Bug#962310: chmod 0700 warning messages appears to be incorrect



On Fri, Jun 05, 2020 at 09:15:56PM -0400, Wakko Warner wrote:
> I noticed, due to the way I have apt setup, that it complains about chmoding
> some files.  I was looking in the source for a way to bypass this message
> and noticed that 0700 is hard coded in the warning.

Can you describe your setup some more so that we can perhaps make apt
deal with that setup better? It is a bit on the backburner ATM, but
isolating the methods more from the system and each other is always on
the TODO list and that tends to involve more directories with more
permissions and stuff.


> In apt-pkg/acquire.cc:SetupAPTPartialDirectory() on lines 112 and 119 is
> where I noticed the message.  The chown in the if statement shows it using a
> variable named mode.  The warning message should reflect the mode it was
> trying to set.

Indeed, thanks for reporting!

I will see how to change that string (and the one assuming root-group to
be root even through we have a compile-time variable for that) without
creating busywork for our translations.


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: