~ubuntu-branches/debian/sid/monopd/sid

« back to all changes in this revision

Viewing changes to install-sh

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2006-08-12 17:05:23 UTC
  • mfrom: (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060812170523-scgnd675p5jpg7lw
Tags: 0.9.3-2
* New patch monopd-0.9.3-dosfix.diff for CVE-2006-1046:
  Fixes a remote DOS vulnerability which could cause the daemon to eat up
  CPU time on the server.  Closes: #355797.
* Bump Standards-Version to 3.7.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        echo "install:  no input file specified"
110
110
        exit 1
111
111
else
112
 
        :
 
112
        true
113
113
fi
114
114
 
115
115
if [ x"$dir_arg" != x ]; then
120
120
                instcmd=:
121
121
                chmodcmd=""
122
122
        else
123
 
                instcmd=$mkdirprog
 
123
                instcmd=mkdir
124
124
        fi
125
125
else
126
126
 
128
128
# might cause directories to be created, which would be especially bad 
129
129
# if $src (and thus $dsttmp) contains '*'.
130
130
 
131
 
        if [ -f "$src" ] || [ -d "$src" ]
 
131
        if [ -f $src -o -d $src ]
132
132
        then
133
 
                :
 
133
                true
134
134
        else
135
135
                echo "install:  $src does not exist"
136
136
                exit 1
141
141
                echo "install:  no destination specified"
142
142
                exit 1
143
143
        else
144
 
                :
 
144
                true
145
145
        fi
146
146
 
147
147
# If destination is a directory, append the input filename; if your system
151
151
        then
152
152
                dst="$dst"/`basename $src`
153
153
        else
154
 
                :
 
154
                true
155
155
        fi
156
156
fi
157
157
 
163
163
 
164
164
# Skip lots of stat calls in the usual case.
165
165
if [ ! -d "$dstdir" ]; then
166
 
defaultIFS='
167
 
        '
 
166
defaultIFS='    
 
167
'
168
168
IFS="${IFS-${defaultIFS}}"
169
169
 
170
170
oIFS="${IFS}"
183
183
        then
184
184
                $mkdirprog "${pathcomp}"
185
185
        else
186
 
                :
 
186
                true
187
187
        fi
188
188
 
189
189
        pathcomp="${pathcomp}/"
194
194
then
195
195
        $doit $instcmd $dst &&
196
196
 
197
 
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
198
 
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
199
 
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
200
 
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
 
197
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
 
198
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
 
199
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
 
200
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
201
201
else
202
202
 
203
203
# If we're going to rename the final executable, determine the name now.
216
216
        then
217
217
                dstfile=`basename $dst`
218
218
        else
219
 
                :
 
219
                true
220
220
        fi
221
221
 
222
222
# Make a temp file name in the proper directory.
235
235
# ignore errors from any of these, just make sure not to ignore
236
236
# errors from the above "$doit $instcmd $src $dsttmp" command.
237
237
 
238
 
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
239
 
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
240
 
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
241
 
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
 
238
        if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
 
239
        if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
 
240
        if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
 
241
        if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
242
242
 
243
243
# Now rename the file to the real destination.
244
244