Artifact
e9547fed5d1c5c9370713521f72b489da40c714f:
Ticket change
[e9547fed5d]
- Pending ticket
[1622579fffffffff|1622579fff]: <i>open fails to open hidden files for writing</i> plus 7 other changes
by
patthoyts on
2007-01-03 20:40:45.
D 2007-01-03T20:40:45
J closedate 2007-01-03T13:40:45
J closer patthoyts
J icomment Logged\sIn:\sYES\s\nuser_id=202636\nOriginator:\sNO\n\n"give\sit\sthe\sreadonly\sattribute"\nYou\smean\shidden.\n\nThe\sissue\shere\sis\sthat\sthe\sfile\sexists\salready\swith\snon-default\sattributes.\sMode\s'w'\smeans\sWRONLY|CREAT|TRUNC\swhich\sis\stranslated\sinto\sOPEN_ALWAYS\sand\sas\swe\slook\slike\swe\sare\screating\sthe\sfile\swe\sexpect\sto\sset\sthe\sattributes\sto\sFILE_ATTRIBUTE_NORMAL.\sAs\sthe\sfile\sexists\sbut\shas\sFILE_ATTRIBUTE_HIDDEN\swe\sget\sa\spermission\sdenied\sfrom\swindows.\n\nThe\ssolution\sis\sto\sopen\swith\sappropriate\sflags:\n%\sset\sf\s[open\sz.txt\sw];\sputs\s$f\stest;\sclose\s$f\n%\sfile\sattributes\sz.txt\s-hidden\s1\n%\n%\slist\s[set\sf\s[open\sz.txt\sw]]\s[close\s$f]\ncouldn't\sopen\s"z.txt":\spermission\sdenied\n%\slist\s[set\sf\s[open\sz.txt\sa]]\s[close\s$f]\nfilea260e8\s{}\n%\slist\s[set\sf\s[open\sz.txt\sa+]]\s[close\s$f]\nfilea21648\s{}\n%\slist\s[set\sf\s[open\sz.txt\s"WRONLY\sCREAT"]]\s[close\s$f]\nfilea26150\n%\slist\s[set\sf\s[open\sz.txt\s"WRONLY\sCREAT\sTRUNC"]]\s[close\s$f]\ncouldn't\sopen\s"z.txt":\spermission\sdenied\n\nI\sdon't\sthink\sthis\sis\sa\sbug\smyself.\n
J login patthoyts
J mimetype text/plain
J resolution Wont\sFix
J status Pending
J username patthoyts
K 1622579fffffffffffffffffffffffffffffffff
U patthoyts
Z 5ce004481f1ddfb96365bfd615791616