From mint-bounce@lists.fishpool.fi Tue Jul 27 14:34:39 2010 Message-ID: <4C4F25E6.9080601@freesbee.fr> Date: Tue, 27 Jul 2010 20:31:02 +0200 From: =?ISO-8859-1?Q?Vincent_Rivi=E8re?= User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1 MIME-Version: 1.0 To: mint@lists.fishpool.fi Subject: Re: [MiNT] "pid 80 (conholio) : unifs: couldn't match a drive with a directory" References: <4C4DB3C9.4050104@freesbee.fr> <1280161606.3622.8365.camel@jetpack.demon.co.uk> In-Reply-To: <1280161606.3622.8365.camel@jetpack.demon.co.uk> Content-Type: multipart/mixed; boundary="------------060207070805060800000205" X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: vincent.riviere@freesbee.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: This is a multi-part message in MIME format. --------------060207070805060800000205 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Alan Hourihane wrote: > Sure, please do. It sounds Aranym specific anyway. Here is a test GEM program. It calls getcwd() and displays the result in a message box. I have tested it with MiNT 1.16. It works well on FAT16 and ext2 partitions. On ARAnyM's hostfs drives, getcwd() fails with ENOTDIR. In any case, it works well from U:\ --=20 Vincent Rivi=E8re --------------060207070805060800000205 Content-Type: text/plain; name="bug.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug.c" #include #include #include #include #include int main(int argc, char* argv[]) { char cwd[500]; char msg[1000]; appl_init(); if (!getcwd(cwd, sizeof cwd)) { sprintf(msg, FA_STOP "[getcwd(): errno = %d|%s][OK]", errno, strerror(errno)); form_alert(1, msg); appl_exit(); return 1; } sprintf(msg, FA_INFO "[cwd = %s][OK]", cwd); form_alert(1, msg); appl_exit(); return 0; } --------------060207070805060800000205--