Bug 143926

Summary: FAQ entry 16.3 out of date
Product: Documentation Reporter: Franklin Pierce <14th.president>
Component: Books & ArticlesAssignee: Gabor Pali <pgj>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Franklin Pierce 2010-02-14 05:47:24 UTC
The setion under 16.3 saying

"Symlinks do not have permissions, and by default, chmod(1) will not follow symlinks to change the permissions on the target file."

Is at odds with known behaviour and the relevant man(1) pages:  chmod(1) & symlink(7)

Also, the use of the word "target" is at odds with ln(1)

Fix: 

Symlinks do not have permissions, and by default, chmod(1) will follow symlinks to change the permissions on the source file, if possible.
How-To-Repeat: touch foo
ln -s foo bar
ls -l
lrwxr-xr-x   1 user  group         3 Feb 14 00:23 bar -> foo
-rw-r--r--   1 user  group         0 Feb 14 00:23 foo
chmod go+x bar
ls -l
lrwxr-xr-x   1 user  group         3 Feb 14 00:23 bar -> foo
-rw-r-xr-x   1 user  group         0 Feb 14 00:23 foo
Comment 1 Johann Kois freebsd_committer freebsd_triage 2010-02-21 19:13:57 UTC
Responsible Changed
From-To: freebsd-www->freebsd-doc

Reclassify.  This is not a problem of the website but of the documentation.
Comment 2 Gabor Pali freebsd_committer freebsd_triage 2010-07-15 18:22:39 UTC
Responsible Changed
From-To: freebsd-doc->pgj

Take.
Comment 3 dfilter service freebsd_committer freebsd_triage 2010-07-15 21:40:13 UTC
pgj         2010-07-15 20:39:58 UTC

  FreeBSD doc repository

  Modified files:
    en_US.ISO8859-1/books/faq book.sgml 
  Log:
  - Fix up FAQ entry on chmod(1)'s behavior regarding symlinks
  
  PR:             docs/143926
  Submitted by:   Franklin Pierce <14th.president@gmail.com>
  
  Revision  Changes    Path
  1.1121    +5 -3      doc/en_US.ISO8859-1/books/faq/book.sgml
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Gabor Pali freebsd_committer freebsd_triage 2010-07-16 11:59:51 UTC
State Changed
From-To: open->closed

Committed.  Thank you for the submission!