public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Mike Kaganski <mikekaganski@mail.ru>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: 'touch filename.ext' will touch 'filename.ext.exe' or 'filename.ext.lnk' or 'filename.ext.exe.lnk' if they exist when there's no 'filename.ext'
Date: Tue, 2 Aug 2022 16:45:38 +0300	[thread overview]
Message-ID: <77a27ddf-2771-76bf-bbaa-374efbf296d7@mail.ru> (raw)

Hi!

Using cygwin 3.3.4-2 and 3.3.5-1:


Create a file named 'file.ext.exe'.

In cygwin, run:

 > touch file.ext


Examine the directory. The 'file.ext' wasn't created; the file 
'file.ext.exe' timestamp was updated.


procmon shows this log for a non-existing file access by touch:

 > touch.exe    17588    CreateFile D:\Documents\nonexistent.ext    NAME 
NOT FOUND    Desired Access: Read EA, Read Attributes, Read Control, 
Disposition: Open, Options: Open Reparse Point, Attributes: n/a, 
ShareMode: Read, Write, Delete, AllocationSize: n/a    
"C:\cygwin64\bin\touch.exe"
 > touch.exe    17588    CreateFile D:\Documents\nonexistent.ext.exe    
NAME NOT FOUND    Desired Access: Read EA, Read Attributes, Read 
Control, Disposition: Open, Options: Open Reparse Point, Attributes: 
n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a    
"C:\cygwin64\bin\touch.exe"
 > touch.exe    17588    CreateFile D:\Documents\nonexistent.ext.lnk    
NAME NOT FOUND    Desired Access: Read EA, Read Attributes, Read 
Control, Disposition: Open, Options: Open Reparse Point, Attributes: 
n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a    
"C:\cygwin64\bin\touch.exe"
 > touch.exe    17588    CreateFile 
D:\Documents\nonexistent.ext.exe.lnk    NAME NOT FOUND    Desired 
Access: Read EA, Read Attributes, Read Control, Disposition: Open, 
Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, 
Delete, AllocationSize: n/a    "C:\cygwin64\bin\touch.exe"
 > touch.exe    17588    CreateFile D:\Documents\nonexistent.ext    
SUCCESS    Desired Access: Generic Write, Read Attributes, Disposition: 
OpenIf, Options: Synchronous IO Non-Alert, Attributes: N, ShareMode: 
Read, Write, Delete, AllocationSize: 0, OpenResult: Created 
"C:\cygwin64\bin\touch.exe"
 > ...

Using Windows 10 version 21H2 (OS Build 19044.1826)


-- 

Best regards,

Mike Kaganski


             reply	other threads:[~2022-08-02 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-02 13:45 Mike Kaganski [this message]
2022-08-07 12:36 ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=77a27ddf-2771-76bf-bbaa-374efbf296d7@mail.ru \
    --to=mikekaganski@mail.ru \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).