浏览代码

Updated docs for --[no-]same-permissions

Sergey Poznyakoff 20 年之前
父节点
当前提交
3e5686c1ec
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      doc/tar.texi

+ 6 - 4
doc/tar.texi

@@ -2967,13 +2967,13 @@ With this option, @command{tar} will not recurse into directories.
 
 
 When extracting an archive, do not attempt to preserve the owner
 When extracting an archive, do not attempt to preserve the owner
 specified in the @command{tar} archive.  This the default behavior
 specified in the @command{tar} archive.  This the default behavior
-for ordinary users; this option has an effect only for the superuser.
+for ordinary users.
 
 
 @item --no-same-permissions
 @item --no-same-permissions
 
 
 When extracting an archive, subtract the user's umask from files from
 When extracting an archive, subtract the user's umask from files from
 the permissions specified in the archive.  This is the default behavior
 the permissions specified in the archive.  This is the default behavior
-for ordinary users; this option has an effect only for the superuser.
+for ordinary users.
 
 
 @item --no-wildcards
 @item --no-wildcards
 Do not use wildcards when excluding files.
 Do not use wildcards when excluding files.
@@ -7487,9 +7487,11 @@ gives you a great deal of control already.
 Extract all protection information.
 Extract all protection information.
 
 
 This option causes @command{tar} to set the modes (access permissions) of
 This option causes @command{tar} to set the modes (access permissions) of
-extracted files exactly as recorded in the archive.  If this option
+extracted files exactly as recorded in the archive. If this option
 is not used, the current @code{umask} setting limits the permissions
 is not used, the current @code{umask} setting limits the permissions
-on extracted files.
+on extracted files. This option is by default enabled when
+@command{tar} is executed by a superuser.
+
 
 
 This option is meaningless with @value{op-list}.
 This option is meaningless with @value{op-list}.