~ubuntu-branches/ubuntu/karmic/unzip/karmic

« back to all changes in this revision

Viewing changes to vms/unzip_def.rnh

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-09-29 17:02:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050929170250-my63eoy88vv1gd7e
Tags: 5.52-3ubuntu2
* SECURITY UPDATE: Fix file permission modification race.
* unix/unix.c: Use fchmod() instead of chmod() to change permissions on the
  files unzip actually created, not the files another attacker might have
  hardlinked to in the meantime.
* CAN-2005-2475

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
.!      02-006          Christian Spieler       15-APR-2001 22:29
47
47
.!              Added description for extended functionality of -b option.
48
48
.!      02-007          Christian Spieler       10-DEC-2001 13:58
49
 
.!              Added description for extended functionality of -b option.
 
49
.!              Added description for new -: traverse dirs option.
 
50
.!      02-008          Christian Spieler       29-JAN-2005 01:50
 
51
.!              Added description for the -T "set archive timestamp" option.
50
52
.!
51
53
.noflags
52
54
.lm4 .rm72
68
70
specify a subset of the archive members.
69
71
Format:
70
72
.sk;.lm+1;.literal
71
 
UNZIP [-cfhlptuvxz[ajnoqCLMVX]] file[.zip] [list] [-x xlist] [-d out_dir]
 
73
UNZIP [-cfhlptTuvxz[ajnoqCLMVX]] file[.zip] [list] [-x xlist] [-d out_dir]
72
74
.end literal;.lm-1
73
75
.!------------------------------------------------------------------------------
74
76
.indent -4
95
97
     *       matches a sequence of 0 or more characters
96
98
     ?       matches exactly 1 character
97
99
     [...]   matches any single character found inside the brackets;
98
 
             ranges are specified by a beginning character,
99
 
             a hyphen, and an ending character.  If a '!' or '^'
100
 
             immediately follows the left bracket, then any character
101
 
             not in the given range is matched.
 
100
             ranges are specified by a beginning character, a hyphen,
 
101
             and an ending character.  If a '!' or '^' immediately
 
102
             follows the left bracket, then any character not in the
 
103
             given range is matched.
 
104
             Hint: To specify a verbatim left bracket '[', the
 
105
                   three-character sequence "[[]" has to be used.
102
106
.end literal
103
107
.sk
104
108
.sk;.indent -4
126
130
   -l   list archive files (short format)
127
131
   -p   extract files to SYS$OUTPUT; no informational messages
128
132
   -t   test archive files
 
133
   -T   set zipfile timestamps to that of each archive's newest entry
129
134
   -u   update existing files; create new ones if needed
130
135
   -v   list archive files (verbose format)
131
136
   -z   display only the archive comment
147
152
   -X   restore owner/protection info (may require privileges)
148
153
   -:   allow "../" path components that traverse across extract dir root
149
154
.end literal;.sk
150
 
Note that uppercase options (-C, -L, -M, -P, -V and -X) must be specified
151
 
in quotes. For example:
 
155
Note that uppercase options (-C, -L, -M, -P, -T, -V and -X) must be
 
156
specified in quotes. For example:
152
157
.sk;.literal
153
158
    unzip "-VX" -a zipfile
154
159
.end literal;.sk