DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 50RASI5Q1855176 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 50RASI5Q1855176 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=XnWG589p X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9932385802C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1737973696; bh=oqIJ8YezhUoT4q477pzLASW2UDTCm77/rq3i9r5dqsw=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=XnWG589pdOMjUUjAxL8yq7iqaV3D5RfJpvfm582SXH/qZWdFBVWbZgvCx38WHFsSK Efp4rhtIRvYsPjMdagKxKXbtEi2jEz/BH2jPDX+8yImBd7OBWNYyZ0Mu7B0dpCMu5Z 9gqcmatKkKcvsIj84W1U6g2KYlmdr/Ak908xdtpk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0544C3858430 Date: Mon, 27 Jan 2025 11:27:04 +0100 To: cygwin AT cygwin DOT com Subject: Re: cygwin 3.5.6-1 Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: <20250126210031 DOT 2173904-1-corinna-cygwin AT cygwin DOT com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Jan 27 08:12, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin-announce wrote: > > The following packages have been uploaded to the Cygwin distribution: > > > > * cygwin-3.5.6-1 > > * cygwin-devel-3.5.6-1 > > * cygwin-doc-3.5.6-1 > > > > Fixes: > > ------ > > > > ... > > > > - Fix mq_unlink(). > > Addresses: https://cygwin.com/pipermail/cygwin/2025-January/257119.html > > Now mq_unlink("/queue") and unlink("/dev/mqueue/queue") work, thanks! > > But there is a regression: > stat() now returns st_mode = 0 for the queue file which results in an > invalid S_IFMT field: > > $ uname -r > 3.5.6-1.x86_64 > > $ stat --printf '0x%04f/%A %n (%F)\n' /dev/mqueue /dev/mqueue/mqtest > 0x43ff/drwxrwxrwt /dev/mqueue (directory) > 0x0000/?--------- /dev/mqueue/mqtest (weird file) > > $ rm -iv /dev/mqueue/mqtest > rm: remove write-protected weird file '/dev/mqueue/mqtest'? y > removed '/dev/mqueue/mqtest' > > > Previous: > > $ uname -r > 3.5.5-1.x86_64 > > $ stat --printf '0x%04f/%A %n (%F)\n' /dev/mqueue /dev/mqueue/mqtest > 0x43ff/drwxrwxrwt /dev/mqueue (directory) > 0x8180/-rw------- /dev/mqueue/mqtest (regular file) > > $ rm -iv /dev/mqueue/mqtest > rm: remove regular file '/dev/mqueue/mqtest'? y > rm: cannot remove '/dev/mqueue/mqtest': Operation not permitted Oh well, I just pushed a patch to patch that patch. I made Cygwin treat message queues as devices, but that was apparently over the top. I reverted this to being treated as files again and just made sure the check for being "anything with a representation on disk" is positive. That in turn convinces unlink() to try removing them. Please test cygwin-3.6.0-0.345.gb940faa144ca, which should be up in an hour or so. Thanks, Corinna -- 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