diff options
author | drh <drh@noemail.net> | 2020-02-13 13:45:04 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2020-02-13 13:45:04 +0000 |
commit | 0ba3621592a060a4dbabcac02c48bf3d9d603c42 (patch) | |
tree | 808df21902c239a74c1fb5ac32bf4f56d603fd01 /src/os_unix.c | |
parent | 77c9b3ccb36505e059587b35de15e48e53702501 (diff) | |
download | sqlite-0ba3621592a060a4dbabcac02c48bf3d9d603c42.tar.gz sqlite-0ba3621592a060a4dbabcac02c48bf3d9d603c42.zip |
Omit O_NOFOLLOW from the open() call when opening /dev/null, since /dev/null
is a symlink on Solaris, we are told.
FossilOrigin-Name: 0c683c43a62fe25c6cb765e4a31556ec91a7c21af79349b3d7eeb13f73dd1cdc
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 07ae4bc03..cf1c579fd 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -689,7 +689,7 @@ static int robust_open(const char *z, int f, mode_t m){ sqlite3_log(SQLITE_WARNING, "attempt to open \"%s\" as file descriptor %d", z, fd); fd = -1; - if( osOpen("/dev/null", f, m)<0 ) break; + if( osOpen("/dev/null", O_RDONLY, m)<0 ) break; } if( fd>=0 ){ if( m!=0 ){ |