title: Cant write from root user into sqlite when sticky bit is set
body: <p>I have a sqlite data base in the folder with a <code>sticky bit</code> in permissions. The folder is onwed by <code>root</code>. The db file is owned by no root user and has full permissions:</p>
  <pre><code>ibse@ibse-VirtualBox:/var/internal$ ll
  total 32
  drwxrwxrwt 2 root root  4096 кві 16 12:00 ./
  drwxr-xr-x 3 root root  4096 кві 16 10:47 ../
  -rwxrwxrwx 1 ibse ibse 21504 кві 16 12:00 mydb.dat*
  </code></pre>
  <p>When I try to INSERT into the database from the <code>root</code> user, the database rejects with <code>attempt to write a readonly database</code>:</p>
  <pre><code>ibse@ibse-VirtualBox:/var/internal$ sudo sqlite3 mydb.dat
  
  SQLite version 3.31.1 2020-01-27 19:55:54
  Enter &quot;.help&quot; for usage hints.
  
  sqlite&gt; INSERT INTO DATA (sent) VALUES (1);
  Error: attempt to write a readonly database
  sqlite&gt;
  </code></pre>
  <p>But when I remove the sticky bit from the folder containing the database file, I can INSERT into one:</p>
  <pre><code>ibse@ibse-VirtualBox:/var/internal$ sudo chmod -t .
  ibse@ibse-VirtualBox:/var/internal$ sudo sqlite3 mydb.dat
  
  SQLite version 3.31.1 2020-01-27 19:55:54
  Enter &quot;.help&quot; for usage hints.
  
  sqlite&gt; INSERT INTO DATA (sent) VALUES (1);
  sqlite&gt;
  </code></pre>
  <p>Why it so? If I right understand the <code>sticky bit</code> concept, the <code>root</code> user can manage all the files in the folder, even if sticky is set</p>