LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   hostname executable overwritten (https://www.linuxquestions.org/questions/slackware-14/hostname-executable-overwritten-4175576078/)

USUARIONUEVO 03-28-2016 06:52 PM

hostname executable overwritten
 
package

a> util-linux --> /bin/hostname

later arrives

n> net-tools --> /bin/hostname

net-tools , overwrite the hostname executable by util-linux.
and of course , the symlinks

dnsdomainname
ypdomainname
nisdomainname

I know is not abig issue , but thinking arround , if some problem or security issue discover on hastname , and patch , the works do nothing , if later arrives net-tools overwriten the executable.

Thanks.


EDIT: I found archlinux remove some of executables on net-tools because provided by other packages

# the following is provided by yp-tools
rm "${pkgdir}"/usr/bin/{nis,yp}domainname
rm "${pkgdir}"/usr/share/man/man1/{nis,yp}domainname.1

# hostname is provided by inetutils
rm "${pkgdir}"/usr/bin/{hostname,dnsdomainname,domainname}
rm -rf "${pkgdir}"/usr/share/man/man1



in slackware case hostname arrives by util-linux , most development than net-tools (abandoned ? )

volkerdi 03-28-2016 07:47 PM

Quote:

Originally Posted by USUARIONUEVO (Post 5522731)
package

a> util-linux --> /bin/hostname

later arrives

n> net-tools --> /bin/hostname

net-tools , overwrite the hostname executable by util-linux.

Both of those hostname binaries are generated by the same net-tools source, and are identical in function.

If a security issue appears in hostname, we'll patch both of those packages.

USUARIONUEVO 03-28-2016 07:57 PM

ok , thanks.


All times are GMT -5. The time now is 05:42 AM.