diff options
author | drh <drh@noemail.net> | 2005-05-17 11:25:31 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2005-05-17 11:25:31 +0000 |
commit | 8e855770deccb7a6634adaddab26e2857f19e57f (patch) | |
tree | 5d3f72c3968e0e973e08cb0b6dc942bb119fdf5d /src/os_unix.h | |
parent | c43e8be80ca4a0db4e5927d0a703be95bdb03b21 (diff) | |
download | sqlite-8e855770deccb7a6634adaddab26e2857f19e57f.tar.gz sqlite-8e855770deccb7a6634adaddab26e2857f19e57f.zip |
Provide a compile-time parameter to set the default file creation permissions
under Unix. Ticket #1247. (CVS 2461)
FossilOrigin-Name: bfa55bec3233eed899606c309773f441857605ae
Diffstat (limited to 'src/os_unix.h')
-rw-r--r-- | src/os_unix.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os_unix.h b/src/os_unix.h index 720896255..4ea0aee36 100644 --- a/src/os_unix.h +++ b/src/os_unix.h @@ -91,5 +91,12 @@ struct OsFile { # define SQLITE_MIN_SLEEP_MS 1000 #endif +/* +** Default permissions when creating a new file +*/ +#ifndef SQLITE_DEFAULT_FILE_PERMISSIONS +# define SQLITE_DEFAULT_FILE_PERMISSIONS 0644 +#endif + #endif /* _SQLITE_OS_UNIX_H_ */ |