.
D 2018-11-09T07:48:33.971
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Appears\sthat\sif\stclsh\sstarts\sin\san\sinaccessible\sworking\sdirectory,\r\nsome\s[file]\soperations\slike\s[file\sdelete]\sreturn\sEFAULT.\r\nThe\sway\sto\sreproduce\sthe\sproblem\shas\sbeen\sreporte\sto\sDebian\r\nat\shttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913189\r\n\r\n$\srm\s-rf\sd\r\n$\smkdir\sd\r\n$\scd\sd\r\n$\srm\s-rf\s../d\r\n$\senv\s-\spwd\r\npwd:\scouldn't\sfind\sdirectory\sentry\sin\s'..'\swith\smatching\si-node\r\n$\stclsh8.6\r\n%\sfile\sdelete\sspong\r\nerror\sdeleting\s"spong":\sbad\saddress\sin\ssystem\scall\sargument\r\n%\r\n\r\nstrace\sshows:\r\n\r\ngetcwd(0x7ffcf224aeb0,\s4097)\s\s\s\s\s\s\s\s\s\s\s\s=\s-1\sENOENT\s(No\ssuch\sfile\sor\sdirectory)\r\nlstat(NULL,\s0x7ffcf224c100)\s\s\s\s\s\s\s\s\s\s\s\s\s=\s-1\sEFAULT\s(Bad\saddress)\r\n\r\nI\swould\sexpect\sanother\serror\s(file\snot\sfound)\sin\sthis\scase.\r\nOr\sis\sthere\sa\sreason\sfor\sthis\sbehavior?
J is_private 0
J login sgolovan
J priority 5\sMedium
J private_contact 07bcf89c4057d2d0e00473ab972eef3274af2d93
J resolution None
J severity Minor
J status Open
J submitter sgolovan
J subsystem 16.\sCommands\sA-H
J title [file]\soperations\sreturn\sEFAULT\swhen\s[pwd]\sis\sinaccessible
J type Bug
K 24ebbce9635d2a149e59df37af1dae971220bfd3
U sgolovan
Z 7a3b998e843f9f5a29b67f4428b98322