X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 35491384EF41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1670860279; bh=U2ZCfT8tiYE3Qo2H2YnPV324oH1lanJOF7XKo6rg/nQ=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=tNxl87BXlQvSwt2ZN3f6QQGY7pGI25ZGU/VTqQVsGsS98hrGG38NiJxWi7WH3lpOw K0o6QLaXE1Y6vmM/czO1yf3CaEFZPBVTMWXFXNmnPDtyqQN1ttn75ikExcvwJjpWiG Vh8CmUGglX1TKudJb7ABwcQh5XxUk6zdyypmvzMA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com Date: Mon, 12 Dec 2022 16:50:42 +0100 To: cygwin AT cygwin DOT com Subject: Re: [EXTERNAL] Re: Strange behavior when executing programs Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <1031eafe-fc3b-ab5b-6e63-b0f56c038332 AT razorcat DOT com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:31M0CJnVQAVMuE1mqAPqFcHEXtBIUDkfbmLQfhdwjzB9xuMuBc/ AbN96YFCeJdIyVbsa0SwO+VWaE6NZmyeYo93vJ9p9rLSZAaXKUuXWxkueegOVLlW9p6j7XL kIoDCz6T9sV+gak+PgF17haUU4nvOtXb2lZh13TFA1ApwGW2rZ0TxM/ctIyn9+k0d99MkYS 3AJbwpoRzMjCCSomUpVzw== UI-OutboundReport: notjunk:1;M01:P0:mxirARnQrb4=;YVHXuTqTFR0kr4TZzLDNkrNtO4Q cZg8ku0ks1NUQuu9108zMuFHXCvFQuoRsIe/6iKdpjBWROSSe3+P1KfTvmvhJeZSD5M+1RQ8C 1btIoXH1U6wzqmAm3h6vV4MH8IvxIMGlDW0/pnQE2Vv5ruW9Nw2QCIZ1SAQUZ5p8PsXtMFGu6 zDiPqKgBAr0Kle0cSUqYW6MZDAEVFioTnbVwIjgCf3JOXPwJNwOT8Hq9V/rR38St7/scH9lwW qCl0Dlu/VdIsO6Jb96psTSE5REvLp5ANJjAb176zEcjLDRnLYdguWfJPDXvbOiBwHp7Utpdsp yAvRYZAJHcBze/UPfpwCsfvcmcQm4qMTyI07XwepZDk2N0iR66NTP6BjpUO91lkK07M2nbglt MJGjtqBKL5mMbttFDWZAIOYTXdnB4jK5fdX9KjxRCVO/88WUx6qwB72atyI81A3yjGddVfyOx rluWgtyL9pbecK6JxpbLqdK1vBr1LROFaLOJXUoTUkG8kYHbetiWpNqw4pejB2t2W+Kpn6AWG M1bs0ODbhT7nXaJ+D/mpsAY0Q1LF4a/P90Oey3m3UHV+ELs1gSO+BVLNAtYOGiYsnp1HdYZNb X5qMlEH+RZ4iTC2k+qHBUuuE4fvzwQ46tidMV2NjZH5NyNrxSNcy2+tljt6JO4JEpOWDLYSY1 AplY5JAoOeSjo2IeA0met7tZDpzUlUizmbhpBCrCjA== X-Spam-Status: No, score=-95.5 required=5.0 tests=BAYES_00, GOOD_FROM_CORINNA_CYGWIN, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Dec 12 16:42, Corinna Vinschen via Cygwin wrote: > On Dec 12 15:29, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > > The problem is that resolved paths may become longer than MAX_PATH. > > > > Oh... But that'd be the same on any other OS that exceeds MAX_PATH, symlinking is going to help work around that, > > if the full path resolution was requested. > > > > BTW, about MAX_PATH -- was it Cygwin's or Windows'? If the former, can't it be enlarged? > > Cygwin handles up to 32K paths for a long time, just like the Windows > kernel. > > It's the native tools and the Win32 ANSI file-API still using MAX_PATH > as a path length restriction. Oh, and for kicks: Windows only allows MAX_PATH - 2 chars as the maximum path length of the current working directory. And that's a hard restriction you can't even workaround by using the UNICODE file-API. Windows 10 1607 lifts that restriction, but it's boarded up as an opt-in option. Therefore, as a developer, you can't rely on the user machines having this enabled, so you're kind of stuck. Cygwin's CWD doesn't have that restriction, it can be up to 32K long as well because it handles this internally. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple