"POSIX doesn't specify -h." - r1.27 from NetBSD
http://man.openbsd.org/?query=chmod&apropos=0&sec=0&arch=default&manpath=POSIX-2013 PR: 212337 Approved by: bcr (mentor) Obtained from: NetBSD MFC after: 5 days Differential Revision: https://reviews.freebsd.org/D8118
This commit is contained in:
parent
bc799c51a3
commit
66d39fc6c7
@ -91,12 +91,11 @@ main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
/*
|
/*
|
||||||
* In System V (and probably POSIX.2) the -h option
|
* In System V the -h option causes chmod to change
|
||||||
* causes chmod to change the mode of the symbolic
|
* the mode of the symbolic link. 4.4BSD's symbolic
|
||||||
* link. 4.4BSD's symbolic links didn't have modes,
|
* links didn't have modes, so it was an undocumented
|
||||||
* so it was an undocumented noop. In FreeBSD 3.0,
|
* noop. In FreeBSD 3.0, lchmod(2) is introduced and
|
||||||
* lchmod(2) is introduced and this option does real
|
* this option does real work.
|
||||||
* work.
|
|
||||||
*/
|
*/
|
||||||
hflag = 1;
|
hflag = 1;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user