<i>file copy reports "not owner" although rights suffice</i> status still Open with 4 other changes
by
.
D 2010-06-03T20:51:30
J icomment Thanks\sCarlos\sfor\sthe\sfiles.\sBug\sspotted\s:)\n\nWhat\shappens\sis\sthat\sTcl's\s[file\scopy]\sdoes\sthe\scopy,\swhich\ssucceeds,\sthen\stries\s(twice!!)\sto\salter\sthe\spermission\sbits\sof\sthe\sjust\screated\sfile\swith\schmod(),\swhich\sfails\sin\sthis\scase:\n\n[pid\s29862]\sopen("/home/carlos/bookmarks.xml",\sO_RDONLY|O_LARGEFILE)\s=\s5\n[pid\s29862]\sopen("/media/borat/Users/carlos/BackUps/bookmarks.xml",\sO_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE,\s0100644)\s=\s6\n[pid\s29862]\sread(5,\s"<?xml\sversion=\\"1.0\\"\sencoding=\\"UT"...,\s4096)\s=\s3528\n[pid\s29862]\swrite(6,\s"<?xml\sversion=\\"1.0\\"\sencoding=\\"UT"...,\s3528)\s=\s3528\n[pid\s29862]\sread(5,\s"",\s4096)\s\s\s\s\s\s\s\s\s\s\s=\s0\n[pid\s29862]\sclose(5)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s0\n[pid\s29862]\sclose(6)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s0\n[pid\s29862]\schmod("/media/borat/Users/carlos/BackUps/bookmarks.xml",\s0644)\s=\s-1\sEPERM\s(Operation\snot\spermitted)\n[pid\s29862]\schmod("/media/borat/Users/carlos/BackUps/bookmarks.xml",\s0644)\s=\s-1\sEPERM\s(Operation\snot\spermitted)\n[pid\s29862]\sunlink("/media/borat/Users/carlos/BackUps/bookmarks.xml")\s=\s0\n[pid\s29862]\swrite(2,\s"error\scopying\s\\"/home/carlos/book"...,\s106error\scopying\s"/home/carlos/bookmarks.xml"\sto\s"/media/borat/Users/c\n\nIn\scontrast,\s/bin/cp\strusts\sthe\sperm\sbits\spassed\sto\sthe\sinitial\sopen(),\sand\sdoes\snot\stry\sthat\sstrange\schmod(),\sso\sit\ssucceeds:\n\nopen("/home/carlos/bookmarks.xml",\sO_RDONLY|O_LARGEFILE)\s=\s3\nfstat64(3,\s{st_mode=S_IFREG|0644,\sst_size=3528,\s...})\s=\s0\nopen("/media/borat/Users/carlos/BackUps/bookmarks.xml",\sO_WRONLY|O_CREAT|O_EXCL|O_LARGEFILE,\s0644)\s=\s4\nfstat64(4,\s{st_mode=S_IFREG|0777,\sst_size=0,\s...})\s=\s0\nread(3,\s"<?xml\sversion=\\"1.0\\"\sencoding=\\"UT"...,\s32768)\s=\s3528\nwrite(4,\s"<?xml\sversion=\\"1.0\\"\sencoding=\\"UT"...,\s3528)\s=\s3528\nread(3,\s"",\s32768)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s0\nclose(4)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s0\nclose(3)\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s=\s0\n\nJeff,\sany\sidea\swhy\swe're\sinsisting\son\schmod\shere\s?\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 731062ffffffffffffffffffffffffffffffffff
U ferrieux
Z c962a349f48a1848b51d70e46b5501d8