Date: Tue, 28 Mar 2000 15:33:51 -0500 (EST) From: Mikhail Teterin <mi@kot.ne.mediaone.net> To: "Jose M. Alcaide" <jose@we.lc.ehu.es> Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/7063: mount fails if $PWD does not exist Message-ID: <200003282033.PAA02117@rtfm.newton> In-Reply-To: <38E0E067.B04452A@we.lc.ehu.es> from "Jose M. Alcaide" at "Mar 28, 2000 06:40:07 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
Jose M. Alcaide once stated: => The following reply was made to PR bin/7063; it has been noted by GNATS. => It appears, the problem is with realpath(3), which mount => invokes. realpath() insists on . being openable. => => May be, something like the attached is needed (damn the goto)? => => In any case, an entry in the CAVEATS section of realpath(3) => is in order explaining its behavior in case `.' does not => exist. => = =I submitted a related PR: bin/12244 Indeed. But your fix will still not work for the case when the . does not even exist, so chdir()-ing back will fail anyway. :) This is not as legitimate a scenario as the one you describe, but it does happen... In case of mount, nobody cares, what CWD it had when it exited, but some other program may, for some reason, care not to chdir() out of the non-existant `.' -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003282033.PAA02117>