Changeset 20225

Show
Ignore:
Timestamp:
02/24/07 12:21:46 (21 months ago)
Author:
bonefish
Message:

Added --ignore-attributes option to cp.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/bin/coreutils/src/cp.c

    r19747 r20225  
    6868{ 
    6969  COPY_CONTENTS_OPTION = CHAR_MAX + 1, 
     70  IGNORE_ATTRIBUTES, 
    7071  NO_PRESERVE_ATTRIBUTES_OPTION, 
    7172  PARENTS_OPTION, 
     
    122123  {"dereference", no_argument, NULL, 'L'}, 
    123124  {"force", no_argument, NULL, 'f'}, 
     125  {"ignore-attributes", no_argument, NULL, IGNORE_ATTRIBUTES}, 
    124126  {"interactive", no_argument, NULL, 'i'}, 
    125127  {"link", no_argument, NULL, 'l'}, 
     
    178180  -f, --force                  if an existing destination file cannot be\n\ 
    179181                                 opened, remove it and try again\n\ 
     182      --ignore-attributes      do not copy attributes\n\ 
    180183  -i, --interactive            prompt before overwrite\n\ 
    181184  -H                           follow command-line symbolic links\n\ 
     
    900903          break; 
    901904 
     905        case IGNORE_ATTRIBUTES: 
     906          x.ignore_attributes = true; 
     907          break; 
     908 
    902909        case 'i': 
    903910          x.interactive = I_ASK_USER;