10, sendmail truncates the file
to its original length if an error occurs while writing.
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
130 | Chapter 3: Tune sendmail with Compile-Time Macros
Another, less serious, race condition can exist when sendmail writes one of its Host Status
files, as defined by the HostStatusDirectory option (?§24.9.57 on page 1037). If ftruncate(2)
is available, sendmail truncates each file before writing new information.
Finally, note that when a MILTER program rewrites the message body, sendmail must
truncate the df file before writing the new text.
For all currently supported systems that lack ftruncate(2), this NOFTRUNCATE compiletime
macro is correctly defined. You will need only to define it when porting sendmail to a
completely new system.
If you are running a precompiled sendmail binary, you can use the -d0.10 debugging
command-line switch (?§15.7.3 on page 543) to determine whether NOFTRUNCATE
support is defined (if it appears in the list, it is defined). New ports should be reported to
sendmail@sendmail.org so that they can be folded into future releases.
3.4.38 NO_GROUP_SET
Prevent multigroup file access Port, edit sendmail/conf.h
When checking files and directories for group read and write permissions, sendmail checks
the group of the controlling user.
Pages:
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257