Skip Menu |

This queue is for tickets about the Win32-IdentifyFile CPAN distribution.

Report information
The Basics
Id: 78684
Status: open
Priority: 0/
Queue: Win32-IdentifyFile

People
Owner: Nobody in particular
Requestors: acorton [...] s21sec.com
Cc:
AdminCc:

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



Subject: IdentifFile sub fails when another process is writing to the file
Date: Tue, 31 Jul 2012 10:45:37 +0200
To: bug-Win32-IdentifyFile [...] rt.cpan.org
From: Alberto Cortón <acorton [...] s21sec.com>
If a process is writing to the file whose fileID you want to get, the call to the CreateFile API function fails. This can be solved by adding FILE_SHARE_WRITE to the call as follows (at line 124 IdentifyFile.xs) hFile = CreateFile (szName, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); Regards, -- Alberto Cortón Dept. Integración de productos propios Tlf: 902 222 521 www.s21sec.com 10 años comprometidos con la seguridad. La información contenida en este mail, así como los archivos adjuntos, es CONFIDENCIAL. Grupo S21sec Gestión, S.A. garantiza la adopción de las medidas necesarias para asegurar el tratamiento confidencial de los datos de carácter personal. En el caso de que el destinatario del correo no sea usted, le rogamos envíe una notificación al remitente y lo destruya de forma inmediata. La lectura y/o manipulación de esta información en la situación señalada anteriormente será considerada ilegal, permitiendo a la empresa remitente realizar acciones legales de diferente envergadura.
Subject: Re: [rt.cpan.org #78684] IdentifFile sub fails when another process is writing to the file
Date: Wed, 1 Aug 2012 08:21:04 +0100 (BST)
To: "bug-Win32-IdentifyFile [...] rt.cpan.org" <bug-Win32-IdentifyFile [...] rt.cpan.org>
From: clive.darke [...] talk21.com
Many thanks for the report, I'll fix it as soon as I can.   Clive Show quoted text
________________________________ From: Alberto Cortón via RT <bug-Win32-IdentifyFile@rt.cpan.org> To: Sent: Tuesday, 31 July 2012, 9:45 Subject: [rt.cpan.org #78684] IdentifFile sub fails when another process is writing to the file Tue Jul 31 04:45:57 2012: Request 78684 was acted upon. Transaction: Ticket created by acorton@s21sec.com       Queue: Win32-IdentifyFile     Subject: IdentifFile sub fails when another process is writing to the file   Broken in: (no value)     Severity: (no value)       Owner: Nobody   Requestors: acorton@s21sec.com       Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=78684 > If a process is writing to the file whose fileID you want to get, the call to the CreateFile API function fails. This can be solved by adding FILE_SHARE_WRITE to the call as follows (at line 124 IdentifyFile.xs) hFile = CreateFile (szName, GENERIC_READ,                             FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL); Regards, -- Alberto Cortón Dept. Integración de productos propios Tlf: 902 222 521 www.s21sec.com 10 años comprometidos con la seguridad. La información contenida en este mail, así como los archivos adjuntos, es CONFIDENCIAL. Grupo S21sec Gestión, S.A. garantiza la adopción de las medidas necesarias para asegurar el tratamiento confidencial de los datos de carácter personal. En el caso de que el destinatario del correo no sea usted, le rogamos envíe una notificación al remitente y lo destruya de forma inmediata. La lectura y/o manipulación de esta información en la situación señalada anteriormente será considerada ilegal, permitiendo a la empresa remitente realizar acciones legales de diferente envergadura.