Hex Artifact Content
Not logged in

Artifact 536b5522d7c7d0fb0b61be1e1aee07154828f540:

Ticket change [536b5522d7] - New ticket [c3971eac71] fossil breaks if HOME points to read-only directory. by anonymous 2010-04-16 21:10:14.
0000: 44 20 32 30 31 30 2d 30 34 2d 31 36 54 32 31 3a  D 2010-04-16T21:
0010: 31 30 3a 31 34 0a 4a 20 63 6f 6d 6d 65 6e 74 20  10:14.J comment 
0020: 54 72 79 5c 73 74 68 65 5c 73 66 6f 6c 6c 6f 77  Try\sthe\sfollow
0030: 69 6e 67 3a 5c 72 5c 6e 5c 72 5c 6e 3c 70 72 65  ing:\r\n\r\n<pre
0040: 3e 5c 72 5c 6e 65 78 70 6f 72 74 5c 73 48 4f 4d  >\r\nexport\sHOM
0050: 45 3d 2f 5c 72 5c 6e 63 64 5c 73 2f 74 6d 70 5c  E=/\r\ncd\s/tmp\
0060: 72 5c 6e 66 6f 73 73 69 6c 5c 73 6e 65 77 5c 73  r\nfossil\snew\s
0070: 74 65 73 74 2e 66 6f 73 73 69 6c 5c 72 5c 6e 3c  test.fossil\r\n<
0080: 2f 70 72 65 3e 5c 72 5c 6e 5c 72 5c 6e 54 68 65  /pre>\r\n\r\nThe
0090: 5c 73 66 6f 6c 6c 6f 77 69 6e 67 5c 73 6d 65 73  \sfollowing\smes
00a0: 73 61 67 65 5c 73 69 73 5c 73 70 72 6f 64 75 63  sage\sis\sproduc
00b0: 65 64 3a 5c 72 5c 6e 5c 72 5c 6e 3c 70 72 65 3e  ed:\r\n\r\n<pre>
00c0: 5c 72 5c 6e 66 6f 73 73 69 6c 3a 5c 73 53 51 4c  \r\nfossil:\sSQL
00d0: 49 54 45 5f 43 41 4e 54 4f 50 45 4e 3a 5c 73 63  ITE_CANTOPEN:\sc
00e0: 61 6e 6e 6f 74 5c 73 6f 70 65 6e 5c 73 66 69 6c  annot\sopen\sfil
00f0: 65 5c 73 61 74 5c 73 73 6f 75 72 63 65 5c 73 6c  e\sat\ssource\sl
0100: 69 6e 65 5c 73 32 36 32 39 34 5c 72 5c 6e 66 6f  ine\s26294\r\nfo
0110: 73 73 69 6c 3a 5c 73 75 6e 61 62 6c 65 5c 73 74  ssil:\sunable\st
0120: 6f 5c 73 6f 70 65 6e 5c 73 64 61 74 61 62 61 73  o\sopen\sdatabas
0130: 65 5c 73 66 69 6c 65 5c 72 5c 6e 5c 72 5c 6e 49  e\sfile\r\n\r\nI
0140: 66 5c 73 79 6f 75 5c 73 68 61 76 65 5c 73 72 65  f\syou\shave\sre
0150: 63 65 6e 74 6c 79 5c 73 75 70 64 61 74 65 64 5c  cently\supdated\
0160: 73 79 6f 75 72 5c 73 66 6f 73 73 69 6c 5c 73 65  syour\sfossil\se
0170: 78 65 63 75 74 61 62 6c 65 2c 5c 73 79 6f 75 5c  xecutable,\syou\
0180: 73 6d 69 67 68 74 5c 72 5c 6e 6e 65 65 64 5c 73  smight\r\nneed\s
0190: 74 6f 5c 73 72 75 6e 5c 73 22 66 6f 73 73 69 6c  to\srun\s"fossil
01a0: 5c 73 61 6c 6c 5c 73 72 65 62 75 69 6c 64 22 5c  \sall\srebuild"\
01b0: 73 74 6f 5c 73 62 72 69 6e 67 5c 73 74 68 65 5c  sto\sbring\sthe\
01c0: 73 72 65 70 6f 73 69 74 6f 72 79 5c 72 5c 6e 73  srepository\r\ns
01d0: 63 68 65 6d 61 73 5c 73 75 70 5c 73 74 6f 5c 73  chemas\sup\sto\s
01e0: 64 61 74 65 2e 5c 72 5c 6e 3c 2f 70 72 65 3e 5c  date.\r\n</pre>\
01f0: 72 5c 6e 5c 72 5c 6e 54 68 69 73 5c 73 65 78 61  r\n\r\nThis\sexa
0200: 6d 70 6c 65 5c 73 61 73 73 75 6d 65 73 5c 73 74  mple\sassumes\st
0210: 68 61 74 5c 73 74 68 65 5c 73 6c 6f 67 67 65 64  hat\sthe\slogged
0220: 5c 73 69 6e 5c 73 75 73 65 72 5c 73 64 6f 65 73  \sin\suser\sdoes
0230: 5c 73 6e 6f 74 5c 73 68 61 76 65 5c 73 77 72 69  \snot\shave\swri
0240: 74 65 5c 73 61 63 63 65 73 73 5c 73 74 6f 5c 73  te\saccess\sto\s
0250: 2f 5c 73 62 75 74 5c 73 64 6f 65 73 5c 73 68 61  /\sbut\sdoes\sha
0260: 76 65 5c 73 77 72 69 74 65 5c 73 61 63 63 65 73  ve\swrite\sacces
0270: 73 5c 73 74 6f 5c 73 2f 74 6d 70 2e 5c 72 5c 6e  s\sto\s/tmp.\r\n
0280: 54 68 69 73 5c 73 69 73 5c 73 61 5c 73 63 6f 6e  This\sis\sa\scon
0290: 74 72 69 76 65 64 5c 73 65 78 61 6d 70 6c 65 5c  trived\sexample\
02a0: 73 74 68 61 74 5c 73 64 65 6d 6f 6e 73 74 72 61  sthat\sdemonstra
02b0: 74 65 73 5c 73 74 68 65 5c 73 70 72 6f 62 6c 65  tes\sthe\sproble
02c0: 6d 3b 5c 73 74 68 65 5c 73 61 63 74 75 61 6c 5c  m;\sthe\sactual\
02d0: 73 70 72 6f 62 6c 65 6d 5c 73 77 61 73 5c 73 65  sproblem\swas\se
02e0: 6e 63 6f 75 6e 74 65 72 65 64 5c 73 77 68 69 6c  ncountered\swhil
02f0: 65 5c 73 61 74 74 65 6d 70 74 69 6e 67 5c 73 74  e\sattempting\st
0300: 6f 5c 73 75 73 65 5c 73 66 6f 73 73 69 6c 5c 73  o\suse\sfossil\s
0310: 77 68 65 6e 5c 73 72 75 6e 6e 69 6e 67 5c 73 61  when\srunning\sa
0320: 73 5c 73 61 6e 6f 74 68 65 72 5c 73 75 73 65 72  s\sanother\suser
0330: 5c 73 28 76 69 61 5c 73 73 75 64 6f 29 2c 5c 73  \s(via\ssudo),\s
0340: 62 75 74 5c 73 77 69 74 68 5c 73 74 68 65 5c 73  but\swith\sthe\s
0350: 6f 6c 64 5c 73 76 61 6c 75 65 5c 73 6f 66 5c 73  old\svalue\sof\s
0360: 48 4f 4d 45 5c 73 28 74 68 65 5c 73 64 65 66 61  HOME\s(the\sdefa
0370: 75 6c 74 5c 73 73 75 64 6f 5c 73 62 65 68 61 76  ult\ssudo\sbehav
0380: 69 6f 72 5c 73 6f 66 5c 73 70 72 65 73 65 72 76  ior\sof\spreserv
0390: 69 6e 67 5c 73 74 68 65 5c 73 6f 72 69 67 69 6e  ing\sthe\sorigin
03a0: 61 6c 5c 73 65 6e 76 69 72 6f 6e 6d 65 6e 74 29  al\senvironment)
03b0: 2e 5c 72 5c 6e 5c 72 5c 6e 49 66 5c 73 69 6e 73  .\r\n\r\nIf\sins
03c0: 74 65 61 64 5c 73 48 4f 4d 45 5c 73 70 6f 69 6e  tead\sHOME\spoin
03d0: 74 73 5c 73 74 6f 5c 73 61 6e 6f 74 68 65 72 5c  ts\sto\sanother\
03e0: 73 75 73 65 72 27 73 5c 73 64 69 72 65 63 74 6f  suser's\sdirecto
03f0: 72 79 5c 73 74 68 61 74 5c 73 68 61 73 5c 73 61  ry\sthat\shas\sa
0400: 5c 73 2e 66 6f 73 73 69 6c 2c 5c 73 62 75 74 5c  \s.fossil,\sbut\
0410: 73 74 68 65 5c 73 63 75 72 72 65 6e 74 5c 73 75  sthe\scurrent\su
0420: 73 65 72 5c 73 64 6f 65 73 5c 73 6e 6f 74 5c 73  ser\sdoes\snot\s
0430: 68 61 76 65 5c 73 77 72 69 74 65 5c 73 61 63 63  have\swrite\sacc
0440: 65 73 73 5c 73 74 6f 5c 73 69 74 5c 73 61 6e 64  ess\sto\sit\sand
0450: 5c 73 79 6f 75 5c 73 61 74 74 65 6d 70 74 5c 73  \syou\sattempt\s
0460: 74 6f 5c 73 63 6c 6f 6e 65 5c 73 28 69 6e 73 74  to\sclone\s(inst
0470: 65 61 64 5c 73 6f 66 5c 73 6a 75 73 74 5c 73 6e  ead\sof\sjust\sn
0480: 65 77 29 5c 73 79 6f 75 5c 73 67 65 74 3a 5c 72  ew)\syou\sget:\r
0490: 5c 6e 5c 72 5c 6e 3c 70 72 65 3e 5c 72 5c 6e 66  \n\r\n<pre>\r\nf
04a0: 6f 73 73 69 6c 3a 5c 73 53 51 4c 49 54 45 5f 52  ossil:\sSQLITE_R
04b0: 45 41 44 4f 4e 4c 59 3a 5c 73 73 74 61 74 65 6d  EADONLY:\sstatem
04c0: 65 6e 74 5c 73 61 62 6f 72 74 73 5c 73 61 74 5c  ent\saborts\sat\
04d0: 73 31 39 3a 5c 73 5b 49 4e 53 45 52 54 5c 73 4f  s19:\s[INSERT\sO
04e0: 52 5c 73 49 47 4e 4f 52 45 5c 73 49 4e 54 4f 5c  R\sIGNORE\sINTO\
04f0: 73 67 6c 6f 62 61 6c 5f 63 6f 6e 66 69 67 28 6e  sglobal_config(n
0500: 61 6d 65 2c 76 61 6c 75 65 29 56 41 4c 55 45 53  ame,value)VALUES
0510: 28 27 72 65 70 6f 3a 2f 74 6d 70 2f 66 6f 6f 2e  ('repo:/tmp/foo.
0520: 66 6f 73 27 2c 31 29 5d 5c 73 61 74 74 65 6d 70  fos',1)]\sattemp
0530: 74 5c 73 74 6f 5c 73 77 72 69 74 65 5c 73 61 5c  t\sto\swrite\sa\
0540: 73 72 65 61 64 6f 6e 6c 79 5c 73 64 61 74 61 62  sreadonly\sdatab
0550: 61 73 65 5c 72 5c 6e 66 6f 73 73 69 6c 3a 5c 73  ase\r\nfossil:\s
0560: 61 74 74 65 6d 70 74 5c 73 74 6f 5c 73 77 72 69  attempt\sto\swri
0570: 74 65 5c 73 61 5c 73 72 65 61 64 6f 6e 6c 79 5c  te\sa\sreadonly\
0580: 73 64 61 74 61 62 61 73 65 5c 72 5c 6e 49 4e 53  sdatabase\r\nINS
0590: 45 52 54 5c 73 4f 52 5c 73 49 47 4e 4f 52 45 5c  ERT\sOR\sIGNORE\
05a0: 73 49 4e 54 4f 5c 73 67 6c 6f 62 61 6c 5f 63 6f  sINTO\sglobal_co
05b0: 6e 66 69 67 28 6e 61 6d 65 2c 76 61 6c 75 65 29  nfig(name,value)
05c0: 56 41 4c 55 45 53 28 27 72 65 70 6f 3a 2f 74 6d  VALUES('repo:/tm
05d0: 70 2f 66 6f 6f 2e 66 6f 73 27 2c 31 29 5c 72 5c  p/foo.fos',1)\r\
05e0: 6e 5c 72 5c 6e 49 66 5c 73 79 6f 75 5c 73 68 61  n\r\nIf\syou\sha
05f0: 76 65 5c 73 72 65 63 65 6e 74 6c 79 5c 73 75 70  ve\srecently\sup
0600: 64 61 74 65 64 5c 73 79 6f 75 72 5c 73 66 6f 73  dated\syour\sfos
0610: 73 69 6c 5c 73 65 78 65 63 75 74 61 62 6c 65 2c  sil\sexecutable,
0620: 5c 73 79 6f 75 5c 73 6d 69 67 68 74 5c 72 5c 6e  \syou\smight\r\n
0630: 6e 65 65 64 5c 73 74 6f 5c 73 72 75 6e 5c 73 22  need\sto\srun\s"
0640: 66 6f 73 73 69 6c 5c 73 61 6c 6c 5c 73 72 65 62  fossil\sall\sreb
0650: 75 69 6c 64 22 5c 73 74 6f 5c 73 62 72 69 6e 67  uild"\sto\sbring
0660: 5c 73 74 68 65 5c 73 72 65 70 6f 73 69 74 6f 72  \sthe\srepositor
0670: 79 5c 72 5c 6e 73 63 68 65 6d 61 73 5c 73 75 70  y\r\nschemas\sup
0680: 5c 73 74 6f 5c 73 64 61 74 65 2e 5c 72 5c 6e 66  \sto\sdate.\r\nf
0690: 6f 73 73 69 6c 3a 5c 73 53 51 4c 49 54 45 5f 45  ossil:\sSQLITE_E
06a0: 52 52 4f 52 3a 5c 73 73 74 61 74 65 6d 65 6e 74  RROR:\sstatement
06b0: 5c 73 61 62 6f 72 74 73 5c 73 61 74 5c 73 32 3a  \saborts\sat\s2:
06c0: 5c 73 5b 52 4f 4c 4c 42 41 43 4b 5d 5c 73 63 61  \s[ROLLBACK]\sca
06d0: 6e 6e 6f 74 5c 73 72 6f 6c 6c 62 61 63 6b 5c 73  nnot\srollback\s
06e0: 2d 5c 73 6e 6f 5c 73 74 72 61 6e 73 61 63 74 69  -\sno\stransacti
06f0: 6f 6e 5c 73 69 73 5c 73 61 63 74 69 76 65 5c 72  on\sis\sactive\r
0700: 5c 6e 3c 2f 70 72 65 3e 5c 72 5c 6e 5c 72 5c 6e  \n</pre>\r\n\r\n
0710: 49 5c 73 77 61 73 5c 73 65 78 70 65 63 74 69 6e  I\swas\sexpectin
0720: 67 5c 73 66 6f 73 73 69 6c 5c 73 74 6f 5c 73 77  g\sfossil\sto\sw
0730: 6f 72 6b 5c 73 77 68 65 74 68 65 72 5c 73 6f 72  ork\swhether\sor
0740: 5c 73 6e 6f 74 5c 73 69 74 5c 73 63 61 6e 5c 73  \snot\sit\scan\s
0750: 6d 75 63 6b 5c 73 61 72 6f 75 6e 64 5c 73 77 69  muck\saround\swi
0760: 74 68 5c 73 7e 2f 2e 66 6f 73 73 69 6c 2e 5c 73  th\s~/.fossil.\s
0770: 5c 73 76 69 6d 5c 73 77 6f 72 6b 73 5c 73 77 68  \svim\sworks\swh
0780: 65 74 68 65 72 5c 73 6f 72 5c 73 6e 6f 74 5c 73  ether\sor\snot\s
0790: 69 74 5c 73 63 61 6e 5c 73 77 72 69 74 65 5c 73  it\scan\swrite\s
07a0: 74 6f 5c 73 7e 2f 2e 76 69 6d 69 6e 66 6f 5c 73  to\s~/.viminfo\s
07b0: 28 61 6c 74 68 6f 75 67 68 5c 73 69 74 5c 73 64  (although\sit\sd
07c0: 6f 65 73 5c 73 63 6f 6d 70 6c 61 69 6e 5c 73 69  oes\scomplain\si
07d0: 66 5c 73 69 74 5c 73 63 61 6e 27 74 29 2e 0a 4a  f\sit\scan't)..J
07e0: 20 66 6f 75 6e 64 69 6e 20 5b 37 63 33 37 62 34   foundin [7c37b4
07f0: 36 62 31 32 5d 5c 73 32 30 31 30 2d 30 34 2d 31  6b12]\s2010-04-1
0800: 35 5c 73 32 33 3a 35 33 3a 31 35 5c 73 55 54 43  5\s23:53:15\sUTC
0810: 0a 4a 20 70 72 69 76 61 74 65 5f 63 6f 6e 74 61  .J private_conta
0820: 63 74 20 61 65 31 61 37 34 36 37 36 62 62 30 64  ct ae1a74676bb0d
0830: 31 61 63 35 32 30 38 30 32 31 30 39 66 39 32 36  1ac520802109f926
0840: 35 36 37 62 31 36 33 37 61 63 37 0a 4a 20 73 65  567b1637ac7.J se
0850: 76 65 72 69 74 79 20 4d 69 6e 6f 72 0a 4a 20 73  verity Minor.J s
0860: 74 61 74 75 73 20 4f 70 65 6e 0a 4a 20 74 69 74  tatus Open.J tit
0870: 6c 65 20 66 6f 73 73 69 6c 5c 73 62 72 65 61 6b  le fossil\sbreak
0880: 73 5c 73 69 66 5c 73 48 4f 4d 45 5c 73 70 6f 69  s\sif\sHOME\spoi
0890: 6e 74 73 5c 73 74 6f 5c 73 72 65 61 64 2d 6f 6e  nts\sto\sread-on
08a0: 6c 79 5c 73 64 69 72 65 63 74 6f 72 79 0a 4a 20  ly\sdirectory.J 
08b0: 74 79 70 65 20 43 6f 64 65 5f 44 65 66 65 63 74  type Code_Defect
08c0: 0a 4b 20 63 33 39 37 31 65 61 63 37 31 61 31 62  .K c3971eac71a1b
08d0: 64 30 31 63 63 32 65 34 37 62 38 63 31 66 32 64  d01cc2e47b8c1f2d
08e0: 31 30 39 62 35 34 64 35 35 37 34 0a 55 20 61 6e  109b54d5574.U an
08f0: 6f 6e 79 6d 6f 75 73 0a 5a 20 66 37 33 34 62 65  onymous.Z f734be
0900: 36 32 61 35 32 36 38 32 65 61 64 64 30 64 37 65  62a52682eadd0d7e
0910: 37 63 32 38 66 37 34 30 31 66 0a                 7c28f7401f.