Skip to content
Tcl Source Code Artifact [3104730a82]
Login

Artifact [3104730a82]

Artifact 3104730a8255de4194a529eada4c64dadfff61fe:

Ticket change [3104730a82] - Ticket [972c35d41d10fa76|972c35d41d] <i>file copy &quot;permission denied&quot; for Windows symlinks</i> status still Open with 4 other changes by twylite on 2015-11-23 10:14:26.
D 2015-11-23T10:14:26.792
J icomment Related\sbug\s[3c13c4ed3149202f546a874457823389ba484be9].\s\sThat\sbug\sreported\sthat:\s'file\sdelete\s$file'\son\sa\ssymbolic\slink\sto\sa\sdirectory\sfails\swith:\s"illegal\soperation\son\sa\sdirectory"...\r\n\r\nThe\sbug\swas\s*incorrectly\sclosed\sas\sinvalid*.\sSteps\sto\sreproduce:\r\n\r\n<verbatim>\r\n\s\s\s\s1.\sRun\sAs\sAdministrator:\scommand\sprompt\r\n\s\s\s\s1.a.\smkdir\sres\r\n\s\s\s\s1.b.\smklink\s/D\ssrc\sres\r\n\s\s\s\s2.\stclsh\r\n\s\s\s\s2.a.\sexec\sfsutil\sdirty\squery\s->\sUsage...\s(=>\swe\shave\selevated\spermissions)\r\n\s\s\s\s2.b.\sfile\sdelete\ssrc\s->\serror\sdeleting\s"src":\sillegal\soperation\son\sa\sdirectory\r\n</verbatim>\r\n\r\nI\ssuspect\sthat\s(part\sof)\sthe\sproblem\sis\sthat\sWindows/NTFS\sdistinguishes\sbetween\sa\ssymlink\sto\sa\sfile\s(<SYMLINK>)\sand\sa\ssymlink\sto\sa\sdirectory\s(<SYMLINKD>)\s(see\shttps://en.wikipedia.org/wiki/NTFS_symbolic_link).\s\s\r\n\r\nI\ssee\sthat\sthe\sMSDN\spage\son\s'_stat'\sclaims\sthat\s"_wstat\sdoes\snot\swork\swith\sWindows\sVista\ssymbolic\slinks.\sIn\sthese\scases,\s_wstat\swill\salways\sreport\sa\sfile\ssize\sof\s0.\s_stat\sdoes\swork\scorrectly\swith\ssymbolic\slinks."\s(https://msdn.microsoft.com/en-us/library/14h5k7ff.aspx).\s\sThe\ssame\spage\snotes\sthat\sst_mode\sis\sa\sbit\smask,\sso\sit\smay\sbe\spossible\sthat\sa\sdirectory\slink\ssets\sboth\sthe\sISDIR\sand\sISLINK\sbits,\sbut\sthat's\sjust\sa\sguess.
J login twylite
J mimetype text/x-fossil-wiki
J username Twylite
K 972c35d41d10fa76718dfd67bf8db3ef10b85789
U twylite
Z f018225fe55c2a8dc4369151c06c5927