public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* pagefile.sys is reported as being a directory
@ 2024-05-02 23:40 Bruno Haible
  2024-05-03  0:23 ` Thomas Wolff
  2024-05-03 16:11 ` Ken Brown
  0 siblings, 2 replies; 5+ messages in thread
From: Bruno Haible @ 2024-05-02 23:40 UTC (permalink / raw)
  To: cygwin; +Cc: Ken Brown

Hi,

Ken Brown noticed this: pagefile.sys and swapfile.sys are being
reported by Cygwin 3.5.3 as being directories.

Cygwin 3.5.3 on Windows 10:

$ ls -ld /proc/cygdrive/c/pagefile.*
drwxr-x--- 17664 Unknown+User Unknown+Group 0 Jan  1  1601 /proc/cygdrive/c/pagefile.sys
$ ls -ld /proc/cygdrive/c/swapfile.*
drwxr-x--- 17664 Unknown+User Unknown+Group 0 Jan  1  1601 /proc/cygdrive/c/swapfile.sys

In Cygwin 2.9.0 and 3.4.6 (also on Windows 10) it was reported
as a regular file:

$ ls -ld /proc/cygdrive/c/pagefile.*
-rw-r----- 1 Unknown+User Unknown+Group 671088640 May  3 01:25 /proc/cygdrive/c/pagefile.sys
$ ls -ld /proc/cygdrive/c/swapfile.*
-rw-r----- 1 Unknown+User Unknown+Group 268435456 May  3 01:25 /proc/cygdrive/c/swapfile.sys

Gnulib is interested in the modification time of this file.

Do you agree that it's a bug?

Do you have a workaround? In Gnulib we wish to have a way to access this file,
that works on all versions of Cygwin.

Bruno




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pagefile.sys is reported as being a directory
  2024-05-02 23:40 pagefile.sys is reported as being a directory Bruno Haible
@ 2024-05-03  0:23 ` Thomas Wolff
  2024-05-03 16:11 ` Ken Brown
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Wolff @ 2024-05-03  0:23 UTC (permalink / raw)
  To: cygwin



Am 03.05.2024 um 01:40 schrieb Bruno Haible via Cygwin:
> Hi,
>
> Ken Brown noticed this: pagefile.sys and swapfile.sys are being
> reported by Cygwin 3.5.3 as being directories.
>
> Cygwin 3.5.3 on Windows 10:
>
> $ ls -ld /proc/cygdrive/c/pagefile.*
> drwxr-x--- 17664 Unknown+User Unknown+Group 0 Jan  1  1601 /proc/cygdrive/c/pagefile.sys
> $ ls -ld /proc/cygdrive/c/swapfile.*
> drwxr-x--- 17664 Unknown+User Unknown+Group 0 Jan  1  1601 /proc/cygdrive/c/swapfile.sys
>
> In Cygwin 2.9.0 and 3.4.6 (also on Windows 10) it was reported as a regular file:
Also still worked in 3.5.1.

> $ ls -ld /proc/cygdrive/c/pagefile.*
> -rw-r----- 1 Unknown+User Unknown+Group 671088640 May  3 01:25 /proc/cygdrive/c/pagefile.sys
> $ ls -ld /proc/cygdrive/c/swapfile.*
> -rw-r----- 1 Unknown+User Unknown+Group 268435456 May  3 01:25 /proc/cygdrive/c/swapfile.sys
>
> Gnulib is interested in the modification time of this file.
>
> Do you agree that it's a bug?
>
> Do you have a workaround? In Gnulib we wish to have a way to access this file,
> that works on all versions of Cygwin.
>
> Bruno
>
>
>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pagefile.sys is reported as being a directory
  2024-05-02 23:40 pagefile.sys is reported as being a directory Bruno Haible
  2024-05-03  0:23 ` Thomas Wolff
@ 2024-05-03 16:11 ` Ken Brown
  2024-05-03 19:31   ` Bruno Haible
  1 sibling, 1 reply; 5+ messages in thread
From: Ken Brown @ 2024-05-03 16:11 UTC (permalink / raw)
  To: Bruno Haible, cygwin

On 5/2/2024 7:40 PM, Bruno Haible wrote:
> Hi,
> 
> Ken Brown noticed this: pagefile.sys and swapfile.sys are being
> reported by Cygwin 3.5.3 as being directories.
> 
> Cygwin 3.5.3 on Windows 10:
> 
> $ ls -ld /proc/cygdrive/c/pagefile.*
> drwxr-x--- 17664 Unknown+User Unknown+Group 0 Jan  1  1601 /proc/cygdrive/c/pagefile.sys
> $ ls -ld /proc/cygdrive/c/swapfile.*
> drwxr-x--- 17664 Unknown+User Unknown+Group 0 Jan  1  1601 /proc/cygdrive/c/swapfile.sys

It turns out that this was a regression in 3.5.3 and was already 
reported (in a slightly different form) in

   https://cygwin.com/pipermail/cygwin/2024-April/255812.html

and fixed for 3.5.4. Until that's released, you can try the latest test 
release (3.6.0-0.115.g579064bf4d40).

> Do you have a workaround? In Gnulib we wish to have a way to access this file,
> that works on all versions of Cygwin.

3.5.3 is the only version that's bad.  I can't think of a workaround, 
but maybe someone else can.  If not, I guess Gnulib will just have to 
bail out and return a boot time of 0 on Cygwin 3.5.3.

Ken

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pagefile.sys is reported as being a directory
  2024-05-03 16:11 ` Ken Brown
@ 2024-05-03 19:31   ` Bruno Haible
  2024-05-03 19:36     ` Ken Brown
  0 siblings, 1 reply; 5+ messages in thread
From: Bruno Haible @ 2024-05-03 19:31 UTC (permalink / raw)
  To: cygwin, Ken Brown

Hi Ken,

> It turns out that this was a regression in 3.5.3 and was already 
> reported (in a slightly different form) in
> 
>    https://cygwin.com/pipermail/cygwin/2024-April/255812.html
> 
> and fixed for 3.5.4.

Thanks for the investigations!

> > Do you have a workaround? In Gnulib we wish to have a way to access this file,
> > that works on all versions of Cygwin.
> 
> 3.5.3 is the only version that's bad.

The regression was apparently caused by commit
c1cf14a871528d1adba88a0128813b58d52ba926 on the cygwin-3_5-branch. Therefore
the affected versions are 3.5.2 and 3.5.3.

> I can't think of a workaround

I think I'll just make the boot time function skip that file if it
appears to be a directory.

Bruno




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: pagefile.sys is reported as being a directory
  2024-05-03 19:31   ` Bruno Haible
@ 2024-05-03 19:36     ` Ken Brown
  0 siblings, 0 replies; 5+ messages in thread
From: Ken Brown @ 2024-05-03 19:36 UTC (permalink / raw)
  To: Bruno Haible, cygwin

On 5/3/2024 3:31 PM, Bruno Haible wrote:
> Hi Ken,
> 
>> It turns out that this was a regression in 3.5.3 and was already
>> reported (in a slightly different form) in
>>
>>     https://cygwin.com/pipermail/cygwin/2024-April/255812.html
>>
>> and fixed for 3.5.4.
> 
> Thanks for the investigations!
> 
>>> Do you have a workaround? In Gnulib we wish to have a way to access this file,
>>> that works on all versions of Cygwin.
>>
>> 3.5.3 is the only version that's bad.
> 
> The regression was apparently caused by commit
> c1cf14a871528d1adba88a0128813b58d52ba926 on the cygwin-3_5-branch. Therefore
> the affected versions are 3.5.2 and 3.5.3.

Just for the record, there never was a release 3.5.2.  But that doesn't 
matter for your workaround.

>> I can't think of a workaround
> 
> I think I'll just make the boot time function skip that file if it
> appears to be a directory.

Sounds good.

Ken

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-05-03 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-02 23:40 pagefile.sys is reported as being a directory Bruno Haible
2024-05-03  0:23 ` Thomas Wolff
2024-05-03 16:11 ` Ken Brown
2024-05-03 19:31   ` Bruno Haible
2024-05-03 19:36     ` Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).