Opened 14 years ago
Closed 14 years ago
#2782 closed task (fixed)
Minor tweak to Coreutils installation
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | 6.8 |
Component: | Book | Version: | SVN |
Severity: | normal | Keywords: | |
Cc: |
Description
The following command should probably be installed in the Coreutils instructions to meet FHS requirements:
mv -v /usr/share/man/man1/chroot.1 \ /usr/share/man/man8/chroot.8
Change History (4)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
chroot isn't mentioned explicitly (from what I could see anyway) in either the FHS or The Open Group Base Specifications Issue 7 (IEEE Std 1003.1-2008). So, I guess it comes down to http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSHAREMANMANUALPAGES which says that section 1 is for "User programs" and section 8 is for "System administration". Given that only root can run chroot (unless a user's shell process has been given CAP_SYS_CHROOT privs), I'd be in agreement that this should be in section 8. Note that Debian & Ubuntu also happen to place the chroot man page in section 8. This is from the debian/rules hunk of their patch at http://archive.ubuntu.com/ubuntu/pool/main/c/coreutils/coreutils_8.5-1ubuntu3.diff.gz:
+ # gnu thinks chroot is in bin, debian thinks it's in sbin + install -d $(d)/usr/sbin $(d)/usr/share/man/man8 + mv $(d)/usr/bin/chroot $(d)/usr/sbin/chroot + sed s/\"1\"/\"8\"/1 $(d)/usr/share/man/man1/chroot.1 > $(d)/usr/share/man/man8/chroot.8 + rm $(d)/usr/share/man/man1/chroot.1
The only other file that refers to this in an LFS + partial BLFS build is pivot_root(8). I'll see if I can throw a patch at bug-coreutils and see if it sticks!
comment:3 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
But then there would be a naming inconsistency in the manpages: Chroot's man page would still refer to it's old name, and if it's referred in another manpage, it will refer to that name again. To fix that, we need some seds.