Skip Menu |

This queue is for tickets about the Perl-Dist-Strawberry CPAN distribution.

Report information
The Basics
Id: 76324
Status: resolved
Priority: 0/
Queue: Perl-Dist-Strawberry

People
Owner: Nobody in particular
Requestors: LCONS [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: link() does nor return the correct error on existing files
When using the link() built-in to link to an existing file, the function fails and sets $! to EINVAL. On other systems, EEXIST is used. This seems to violate the POSIX standard (http://pubs.opengroup.org/onlinepubs/009695399/functions/link.html) that does not even list EINVAL in its list of possible errors. Note that, in this case, $^E is set to ERROR_ALREADY_EXISTS (Cannot create a file when that file already exists) so the problem may simply bet a mapping between $^E and $!.
Subject: Re: [rt.cpan.org #76324] link() does nor return the correct error on existing files
Date: Thu, 05 Apr 2012 13:28:53 +0200
To: bug-Perl-Dist-Strawberry [...] rt.cpan.org
From: kmx <kmx [...] volny.cz>
Show quoted text
> When using the link() built-in to link to an existing file, the function > fails and sets $! to EINVAL. On other systems, EEXIST is used. > > This seems to violate the POSIX standard > (http://pubs.opengroup.org/onlinepubs/009695399/functions/link.html) that > does not even list EINVAL in its list of possible errors. > > Note that, in this case, $^E is set to ERROR_ALREADY_EXISTS (Cannot > create a file when that file already exists) so the problem may simply > bet a mapping between $^E and $!. >
Thanks for your report. However this seems to be an issue related rather to perl core (Win32 part) than to strawberry perl. Perhaps https://rt.perl.org/ is a better place for this sort of bug. Anyway I can reproduce your example on strawberry perl 5.14.2 -- kmx
On Thu Apr 05 07:29:05 2012, kmx@volny.cz wrote: Show quoted text
> Perhaps https://rt.perl.org/ is a better place for this sort of bug.
Thanks for your reply. I've submitted the bug as: https://rt.perl.org/rt3/Public/Bug/Display.html?id=112272
On Thu Apr 05 08:04:03 2012, LCONS wrote: Show quoted text
> On Thu Apr 05 07:29:05 2012, kmx@volny.cz wrote:
> > Perhaps https://rt.perl.org/ is a better place for this sort of bug.
> > Thanks for your reply. I've submitted the bug as: > https://rt.perl.org/rt3/Public/Bug/Display.html?id=112272
Fixed now in blead.