From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 962E33858D34 for ; Sun, 3 May 2020 00:09:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 962E33858D34 Received: by mail-lf1-x131.google.com with SMTP id a9so1281412lfb.8 for ; Sat, 02 May 2020 17:09:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=o4oqtHypVsSPyW8eR6CrhGZvhCHEwFwLdxqK+QIow6I=; b=jT3XRcXBuY99mE2APVl/CpMzg3p0jKGzCxxkgnUTEkaCSHrjSy5Od1a6Oqz7051oJd 086SzPWZBnOcRnVnC/AahvnP2S43FEpMMcD3yDi5nFUJqky0P58hoRYCQvkHei3PVvRF BqeF1G4OdMKMUDWwQfe99qYhsu0y6da2hi8+9BawhN4ZFoOT94zinfm//d2gu1//1I1v TcCrAj61hPDVbRo8bwkjCHFNG9zmDyk5pWv1qzg+6MDRafLshd7LDdW9tIo85crhfyBa u82SjaatMpWYmVlq0UG2aChOSPnfzSRZhzokPreauu1qLCQVUN8sajGJePz+qpMRH0DY TfrQ== X-Gm-Message-State: AGi0PuauuYyN7hTBzyCtzwhaTmrHwnEeUkAPCkYga22WeE/4t1zzxi/g r1Rs7yMQ6671Y/b4k9yIFNBwGBihg5A8KbV3lCHBH1MoIFM= X-Google-Smtp-Source: APiQypJrOYkGCWOvllGV7DFSVuDpWbCOM/ynW8x7ByL3gxLq/FIP/dXS5+Rd3YvxHAQKYJsC8fAtBCgIZrlpmFR9Mec= X-Received: by 2002:a19:2286:: with SMTP id i128mr6936446lfi.109.1588464569936; Sat, 02 May 2020 17:09:29 -0700 (PDT) MIME-Version: 1.0 From: Sean Baker Date: Sat, 2 May 2020 20:09:08 -0400 Message-ID: Subject: Invalid request code when removing files To: cygwin@cygwin.com X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2020 00:09:33 -0000 I just installed Cygwin on a new Windows 10 machine. I am getting an error "Invalid request code" whenever I try to remove a file. Every other file operation that I have tested so far seems to work fine. Using a Windows CMD prompt, I can remove the file with the normal windows DEL command. However, if I try to execute C:\cygwin64\bin\rm.exe it still fails with "Invalid request code". This problem does not just occur with the 'rm' command. For example. 'vi' and 'git' cannot remove the lock files that they create. Also custom programs that I write myself and compile under Cygwin fail with the same error code when trying to remove files, even when executed from a Windows CMD prompt or clicked on in Windows explorer. The location of the file does not matter either, since I have tried files in the Cygwin home dir, my Users directory, My Documents, etc with the same result. However I have also installed MinGW, and in both the Cygwin terminal and Windows CMD prompt I can remove files successfully by calling the rm.exe installed there (see examples). Example under Cygwin: sbaker@FWA002495 ~ >$ echo test > foo sbaker@FWA002495 ~ >$ ls -l foo -rw-r--r-- 1 sbaker Domain Users 5 May 2 19:47 foo sbaker@FWA002495 ~ >$ cat foo test sbaker@FWA002495 ~ >$ rm foo rm: remove regular file 'foo'? y rm: cannot remove 'foo': Invalid request code sbaker@FWA002495 ~ >$ /cygdrive/c/MinGW/msys/1.0/bin/rm.exe -v foo removed `foo' Example under Windows CMD: C:\Users\sbaker>echo test > foo C:\Users\sbaker>c:\cygwin64\bin\rm.exe -v foo /usr/bin/rm: cannot remove 'foo': Invalid request code C:\Users\sbaker>c:\MinGW\msys\1.0\bin\rm.exe -v foo removed `foo'