From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93372 invoked by alias); 7 Dec 2016 23:52:55 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 93327 invoked by uid 89); 7 Dec 2016 23:52:54 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=enduser, H*f:sk:6e5968a, H*i:sk:6e5968a, our X-HELO: mail-qt0-f180.google.com Received: from mail-qt0-f180.google.com (HELO mail-qt0-f180.google.com) (209.85.216.180) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 07 Dec 2016 23:52:53 +0000 Received: by mail-qt0-f180.google.com with SMTP id p16so395982739qta.0 for ; Wed, 07 Dec 2016 15:52:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=0GkzLlJSZZSFoZw2GC2XK38rz7cyrPeqZtjy+iA7KUQ=; b=mTCZ+QePyxzlAV98nideoZOnTkbCgZJBMOcGwJickEgCn3lBesJwq/tSWqUMriiOQ+ bO4i7Kd2ZTLMgt2h/Fzc0iP2HRk51DGudTup6JIm16/T+ZhVhW8YzauZ7nC5r/4xD+dj 6Q4xSU36vapPl5GD5vwKGEb1D6BBWWWhwXShzAz6SED9Red6vzfo28KTvm2O+PsMaIGH dQCTN+O16EK+rolcvhoMzmLaAQM/+7EZkFDrq2htYR4cv9Ls4udPNzEUDjgoFMBiJCYX IXfY8S0cGWTq1Aqm/fTEQQP0LOpS50WIocxDHHaGy7lIzlsa6UoYhEf6x9WAhPwswllS lurg== X-Gm-Message-State: AKaTC00RKkvXRjaoBR2lEtyF8Cftw+uXVgOo3NLRDxLHRK+HCiMEhfd80FRB11e5D69R3p+xrbKU3ILWZ0AELw== X-Received: by 10.200.47.204 with SMTP id m12mr71974945qta.79.1481154771818; Wed, 07 Dec 2016 15:52:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.140.25.171 with HTTP; Wed, 7 Dec 2016 15:52:51 -0800 (PST) In-Reply-To: <6e5968a1-a667-f911-fbec-f83e4ef34608@redhat.com> References: <6e5968a1-a667-f911-fbec-f83e4ef34608@redhat.com> From: Dipak Gaigole Date: Wed, 07 Dec 2016 23:52:00 -0000 Message-ID: Subject: Re: Problem with chdir and GetCurrentDirectory on Windows 2016 To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00079.txt.bz2 >> >> So in this situation, is it possible to get the cwd value as >> "/cygdrive/c/temp/appdir/bin" using some cygwin API? > > No, it is generally not possible to get the POSIX path to anything in > the cygwin root (/) tree to be prefixed by the /cygdrive prefix. The > /cygdrive prefix exists solely to resolve paths that are outside of /, > so paths inside that tree don't need the /cygdrive prefix. > This path is also displayed to the enduser at different places. So our requirement is to always get a path in the /cygdrive/ prefix format irrespective of whether it is inside the cygwin root (/) or outside of /. -- 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