SFF_CREAT 0x00000040 OK to create file if necessary
SFF_REGONLY 0x00000080 Regular files only
SFF_SAFEDIRPATH 0x00000100 No writable directories (also check owner)
SFF_NOHLINK 0x00000200 File cannot have hard links
SFF_NOWLINK 0x00000400 Links only in nonwritable directories
SFF_NOGWFILES 0x00000800 Disallow group-writable files
SFF_NOWWFILES 0x00001000 Disallow world-writable files
SFF_OPENASROOT 0x00002000 Open as root instead of real user
SFF_NOLOCK 0x00004000 Don??™t lock the file
SFF_NOGRFILES 0x00008000 Disallow group-readable files
SFF_NOWRFILES 0x00010000 Disallow world-readable files
SFF_NOTEXCL 0x00020000 Creates don??™t need to be exclusive
SFF_EXECOK 0x00040000 Executable files are OK
Table 15-11. safefile( ) access flags (continued)
Mnemonic Hex flag Description
This is the Title of the Book, eMatter Edition
Copyright ?© 2007 O??™Reilly & Associates, Inc. All rights reserved.
15.7 Reference for -d in Numerical Order | 571
If the file does not exist, it might need to be created. If so, sendmail checks to be sure that the
user-id has write permission. The result is printed with the -d44.4 debugging switch like this:
[final dir fname uid user-id mode wantmode ] error here
If the file exists and if symbolic links are supported, the file is rejected if it is a symbolic link
and if the SFF_NOSLINK flag is set.
Pages:
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013