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

Bug#983861: k3b: Permissions of external program should be of group "cdrom" and not "operator"



Hello Norbert,

This is still relevant for 22.04.2-1

Would you please add that patch to the package?

Since the "operator" group is present on a fresh install of Debian, and since 
it is prefered to have group "cdrom" used by k3b, I think it would be better 
if the patch was applied.

Rgds
Fab


Le mardi 2 mars 2021, 16:59:35 CEST Fab Stz a écrit :
> Hello,
> 
> > Well, the original code is rather bad indeed, because it relies on the
> > order of groups returned by getgrent, and picks the *last* available
> > one. In your case, if you have an "operator" group, it will be used.
> 
> Ok, this explains it then.
> 
> Well it's a fresh debian install of testing/bullseye to find some bugs
> before the upcoming release. And on a fresh install "operator" group is
> present.
> 
> If k3b's deb could be fixed for the next release of debian so that the
> package conforms debian's policies that would be great. I think this patch
> is sufficient since the group that fits this purpose, according to the
> group definition is "cdrom", so no need to search any other, and on debian
> it does exist.
> 
> Regards
> 
> Le mardi 2 mars 2021, 14:31:12 CET Norbert Preining a écrit :
> > Hi,
> > 
> > not that I am an expert, and cd burning is anyway only for maniacs (like
> > me!!!) who want to get into contact with whom-who-must-not-be-named.
> > 
> > > With k3b, when wanting to set the external program permissions, it wants
> > > to
> > > set them with user "operator" instead of "cdrom" which may be more
> > > adequate
> > > 
> > >      while (::group *g = ::getgrent()) {
> > >      
> > >          const QString groupName = QString::fromLocal8Bit(g->gr_name);
> > > 
> > > -        if (groupName == "cdrom" ||
> > > -            groupName == "optical" ||
> > > -            groupName == "operator" ) {
> > > +        if (groupName == "cdrom") {
> > > 
> > >              m_permissionModel->setBurningGroup(groupName);
> > >          
> > >          }
> > >      
> > >      }
> > 
> > Well, the original code is rather bad indeed, because it relies on the
> > order of groups returned by getgrent, and picks the *last* available
> > one. In your case, if you have an "operator" group, it will be used.
> > 
> > I am not sure, maybe this is intended, but I guess there should be
> > either a break out of the loop after the first groupname is found,
> > or something else.
> > 
> > Best
> > 
> > Norbert
> > 
> > --
> > PREINING Norbert                              https://www.preining.info
> > Fujitsu Research Labs  +  IFMGA Guide + TU Wien + TeX Live + Debian Dev
> > GPG: 0x860CDC13   fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13


Reply to: