X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EF7C93870845 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1588464575; bh=pao/cgDFnd0Vg1b3A4ACsjn7eeIaDrUlxAeNosGTiig=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=PTkHuBUxOCs/IFDZuAwmFzUnL0XsfBWfyc1xbUVQvbbJSaKWY6XwYOWfKf8wmyX0Y LDLjq6sHyeZpEqyNR9gaQBzgLehrgufyWrWdn/WRaUKqas4m8i+px6RmhfT5DI9Nil a7lBwMGcIxkSY97486NrfhbIGQmvyHD1xFkplCNA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 962E33858D34 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 Date: Sat, 2 May 2020 20:09:08 -0400 Message-ID: Subject: Invalid request code when removing files To: cygwin AT cygwin DOT 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Sean Baker via Cygwin Reply-To: Sean Baker Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Cygwin" 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 AT FWA002495 ~ >$ echo test > foo sbaker AT FWA002495 ~ >$ ls -l foo -rw-r--r-- 1 sbaker Domain Users 5 May 2 19:47 foo sbaker AT FWA002495 ~ >$ cat foo test sbaker AT FWA002495 ~ >$ rm foo rm: remove regular file 'foo'? y rm: cannot remove 'foo': Invalid request code sbaker AT 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' -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple