Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E5AE3102F1 for ; Tue, 28 Jan 2014 02:56:44 +0000 (UTC) Received: (qmail 40894 invoked by uid 500); 28 Jan 2014 02:56:44 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 40359 invoked by uid 500); 28 Jan 2014 02:56:41 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 40325 invoked by uid 99); 28 Jan 2014 02:56:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Jan 2014 02:56:39 +0000 Date: Tue, 28 Jan 2014 02:56:39 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-5913) cordova create --link fails on Win without admin privileges MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-5913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13883689#comment-13883689 ] ASF subversion and git services commented on CB-5913: ----------------------------------------------------- Commit 1f430644cb2df0a4b71ebf67a6e4c1ddc5341696 in branch refs/heads/master from [~agrieve] [ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=1f43064 ] CB-5913 Fail more gracefully on Windows when symlinks fail. > cordova create --link fails on Win without admin privileges > ------------------------------------------------------------ > > Key: CB-5913 > URL: https://issues.apache.org/jira/browse/CB-5913 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Reporter: Andrew Grieve > Assignee: Andrew Grieve > Priority: Minor > > fs.symlinkSync() throws: > {quote} > > try { fs.symlinkSync('a','b'); } catch(e) { foo = e } > { [Error: EPERM, operation not permitted 'a'] > errno: 50, > code: 'EPERM', > path: 'a', > syscall: 'symlink' } > {quote} > The same call works when running with admin privileges. We should test & catch this case earlier than we currently do. -- This message was sent by Atlassian JIRA (v6.1.5#6160)