Artifact
dca81e254d91f1e297d75502df10d08fccf69681:
Ticket change
[dca81e254d]
- Ticket [c3971eac71]
fossil breaks if HOME points to read-only directory status still Open with 2 other changes
by
drh
2010-04-21 23:38:41.
D 2010-04-21T23:38:41
J comment Try\sthe\sfollowing:\r\n\r\n<pre>\r\nexport\sHOME=/\r\ncd\s/tmp\r\nfossil\snew\stest.fossil\r\n</pre>\r\n\r\nThe\sfollowing\smessage\sis\sproduced:\r\n\r\n<pre>\r\nfossil:\sSQLITE_CANTOPEN:\scannot\sopen\sfile\sat\ssource\sline\s26294\r\nfossil:\sunable\sto\sopen\sdatabase\sfile\r\n\r\nIf\syou\shave\srecently\supdated\syour\sfossil\sexecutable,\syou\smight\r\nneed\sto\srun\s"fossil\sall\srebuild"\sto\sbring\sthe\srepository\r\nschemas\sup\sto\sdate.\r\n</pre>\r\n\r\nThis\sexample\sassumes\sthat\sthe\slogged\sin\suser\sdoes\snot\shave\swrite\saccess\sto\s/\sbut\sdoes\shave\swrite\saccess\sto\s/tmp.\r\nThis\sis\sa\scontrived\sexample\sthat\sdemonstrates\sthe\sproblem;\sthe\sactual\sproblem\swas\sencountered\swhile\sattempting\sto\suse\sfossil\swhen\srunning\sas\sanother\suser\s(via\ssudo),\sbut\swith\sthe\sold\svalue\sof\sHOME\s(the\sdefault\ssudo\sbehavior\sof\spreserving\sthe\soriginal\senvironment).\r\n\r\nIf\sinstead\sHOME\spoints\sto\sanother\suser's\sdirectory\sthat\shas\sa\s.fossil,\sbut\sthe\scurrent\suser\sdoes\snot\shave\swrite\saccess\sto\sit\sand\syou\sattempt\sto\sclone\s(instead\sof\sjust\snew)\syou\sget:\r\n\r\n<verbatim>\r\nfossil:\sSQLITE_READONLY:\sstatement\saborts\sat\s19:\s[INSERT\sOR\sIGNORE\sINTO\s\r\nglobal_config(name,value)VALUES('repo:/tmp/foo.fos',1)]\sattempt\sto\swrite\sa\sreadonly\sdatabase\r\nfossil:\sattempt\sto\swrite\sa\sreadonly\sdatabase\r\nINSERT\sOR\sIGNORE\sINTO\sglobal_config(name,value)VALUES('repo:/tmp/foo.fos',1)\r\n\r\nIf\syou\shave\srecently\supdated\syour\sfossil\sexecutable,\syou\smight\r\nneed\sto\srun\s"fossil\sall\srebuild"\sto\sbring\sthe\srepository\r\nschemas\sup\sto\sdate.\r\nfossil:\sSQLITE_ERROR:\sstatement\saborts\sat\s2:\s[ROLLBACK]\scannot\srollback\s-\sno\stransaction\sis\sactive\r\n</verbatim>\r\n\r\nI\swas\sexpecting\sfossil\sto\swork\swhether\sor\snot\sit\scan\smuck\saround\swith\s~/.fossil.\s\svim\sworks\swhether\sor\snot\sit\scan\swrite\sto\s~/.viminfo\s(although\sit\sdoes\scomplain\sif\sit\scan't).
J resolution Open
K c3971eac71a1bd01cc2e47b8c1f2d109b54d5574
U drh
Z a970cdf838cf69451e854485a2c04ec0