X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Mon, 18 Jun 2012 22:22:00 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: CYGWIN app crashes ungracefully when run from the root of a drive Message-ID: <20120618202200.GA20231@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Jun 11 11:39, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: > Hi, > > Maybe it has been covered somewhere -- I could not find the answer, so please > excuse the repetition. I observe that if I build an app (consider the simplest > "Hello world" program below as an example), and store the executable at a standalone > location (not CYGWIN tree), yet supplemented it with a cygwin1.dll, it can then successfully > run when started in the Windows shell (CMD.EXE) from a subdirectory, but fails ungracefully > if run from the root of a drive (e.g. when stored onto a USB stick that has the "flat" > file structure, w/o subdirectories). > > Can anything be done about it? (Like allowing the app to run, or issuing an error I just applied a patch which allows to run Cygwin applications, even if the Cygwin DLL is installed into the root directory of a drive or network path. Note that certain paths still have to match the expectations. For instance, if D: is the root dir, the fstab, passwd and group files are still searched in /etc, which is D:\etc. Also the /usr/bin and /usr/lib default mount points will invariably point to D:\bin and D:\lib, unless there's a /etc/fstab file which changes them per the user's guide. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple