On Fri, Jun 3, 2016 at 4:45 PM, Raf Czlonka <rczlo...@gmail.com> wrote:

> On Fri, Jun 03, 2016 at 07:39:31PM BST, Peter N. M. Hansteen wrote:
> > On 06/03/16 20:26, Todd C. Miller wrote:
> > > Perhaps your sudo binary is linked with an old libc that used
> > > sys_osendsyslog?
> >
> > That's it exactly.
> >
> > It looks like on this machine, I had an old /usr/bin/sudo lying around
> >
> > [Fri Jun 03 20:32:59] peter@elke:~$ ls -l `which sudo`
> > -r-sr-xr-x  2 root  bin  157480 Jun 30  2015 /usr/bin/sudo
> >
> > in addition to the one that came out of the more recent package
> >
> > [Fri Jun 03 20:33:20] peter@elke:~$ ls -l /usr/local/bin/sudo
> > -r-sr-xr-x  1 root  bin  134023 May 23 19:21 /usr/local/bin/sudo
> >
> > and with a PATH like this
> >
> > [Fri Jun 03 20:34:20] peter@elke:~$ echo $PATH
> > /bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/s
> > bin:/usr/X11R6/bin:/home/peter/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/lo
> > cal/bin:/usr/local/sbin:/usr/games:.
> >
> > it's actually quite obvious.
> >
> > $ doas rm -f /usr/bin/sudo*
> > $ doas rm -f /usr/bins/*sudo*
> >
> > made sudo work again.
> >
> > Note to self: upgrade notes are for reading
>
> Also, 'sysclean' from ports is a very handy utility if one "forgets"
> to read the notes[0] :^)
>
> Regards,
>
> Raf
>
> [0] Even if one *does* read the notes, it is still very useful as it
>     helps to clean-up files and directories not mentioned in the notes
>
>

+1 for sysclean to check for obsolete packages. sysclean reminds you which
files are obsolete. but be careful deleting the files. I deleted a current
libc.so by mistake.... open a root shell somewhere and then start deleting
carefully, very carefully.

Reply via email to