mirror of
https://github.com/uutils/coreutils
synced 2024-12-13 23:02:38 +00:00
Merge pull request #5422 from cakebaker/uucore_remove_incorrect_comment
uucore: remove incorrect comment
This commit is contained in:
commit
adde9abfee
1 changed files with 1 additions and 1 deletions
|
@ -435,6 +435,7 @@ pub fn canonicalize<P: AsRef<Path>>(
|
|||
}
|
||||
|
||||
#[cfg(not(unix))]
|
||||
/// Display the permissions of a file
|
||||
pub fn display_permissions(metadata: &fs::Metadata, display_file_type: bool) -> String {
|
||||
let write = if metadata.permissions().readonly() {
|
||||
'-'
|
||||
|
@ -459,7 +460,6 @@ pub fn display_permissions(metadata: &fs::Metadata, display_file_type: bool) ->
|
|||
|
||||
#[cfg(unix)]
|
||||
/// Display the permissions of a file
|
||||
/// On non unix like system, just show '----------'
|
||||
pub fn display_permissions(metadata: &fs::Metadata, display_file_type: bool) -> String {
|
||||
let mode: mode_t = metadata.mode() as mode_t;
|
||||
display_permissions_unix(mode, display_file_type)
|
||||
|
|
Loading…
Reference in a new issue