Opened 9 years ago

Closed 9 years ago

#3891 closed defect (fixed)

Please prevent installing man3/getspnam.3 of the shadow package.

Reported by: yuksiy Owned by: lfs-book@…
Priority: normal Milestone: 7.9
Component: Book Version: SVN
Severity: normal Keywords:
Cc: yuk@…

Description

( This ticket has been re-posted revised my following post.
http://lists.linuxfromscratch.org/pipermail/lfs-dev/2016-February/070821.html )

In LFS 7.8 "6.25. Shadow-4.2.1", getspnam.3 of the shadow package overwrites already installed getspnam.3 of the man-pages package.

However, it's hard for LFS readers to judge whether this overwriting is intended or not, because there is no supplementary explanation about overwriting in this page.

In addition, for example, when I run the following command on the Debian 7.9 PC,

$ man 3 getspnam_r

the page entitled as "GETSPNAM(3)" is displayed.
"getspnam_r()" is described as "GNU extension" in this page.

But, when I run the same command as above on the LFS 7.8 PC, the page entitled as "SHADOW(3)" is displayed.
There is no description about the "GNU extension" including "getspnam_r()" in this page.

Technically, the case of Debian 7.9, binary package "manpages-dev" provides the regular file "getspnam.3.gz" and the symbolic link "getspnam_r.3.gz" which refers to the former.
As a result, it seems that the above man command displays the getspnam.3.gz.
And, this file contains descriptions about the "getspnam_r()".

On the other hand, the case of LFS 7.8, package "man-pages" provides the regular file "getspnam.3" and the regular file "getspnam_r.3" which refers to the former.
However, package "shadow" overwrites the getspnam.3.
Furthermore, this getspnam.3 refers to the shadow.3.
As a result, it seems that the above man command displays the shadow.3.
However, this file contains no description about the "getspnam_r()".

Therefore, I suggest installation of getspnam.3 of the shadow package is prevented.

If this suggestion is not acceptable, I think at least it would be better to add supplementary explanation that overwriting getspnam.3 is intended.

Change History (3)

comment:1 by bdubbs@…, 9 years ago

After looking at this, it appears that the man-pages version is more accurate, although the pages are very similar. I suppose we should add:

find -name getsp\* -delete

to the shadow page, but I have not tested it.

comment:2 by bdubbs@…, 9 years ago

Cc: yuk@… added

comment:3 by bdubbs@…, 9 years ago

Milestone: 7.107.9
Resolution: fixed
Status: newclosed

Fixed at revision 11026.

Note: See TracTickets for help on using tickets.