Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Gunnar Norling" To: Subject: CVS - Permision denied Date: Wed, 4 Jul 2001 17:07:30 +0200 Message-ID: <000101c1049b$0c7daf50$1901a8c0@norling> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Checking out files having the ``watch on'' (read-only) flag set generates the following error: cvs checkout: cannot set time on _file_: Permission denied There is actually no problem to work with the file, but it is annoying to receive this error. If the flag is removed, and a new checkout is done, no errors is shown. The repository is accessed via `pserver' and resides on a Linux machine, running cvs version 1.11. When used locally from the Linux machine no errors occur. No errors occurs, either, when run from a WinNT machine, with the 1.1.8(0.34/3/2) 2001-01-31 version of Cygwin installed (same CVS version is used). So, could there be something inside `cygwin1.dll'. Or have missed a discussion thread? Futher investigations give: If a look on the file checked out, from Windows Explorer, I see that the R/0 file attribute is set, and as a consequence (I guess) `touch' won't work: $ls -l _file_ -r--r--r-- 1 gunnar Domain U 1148 Jul 4 16:22 _file_ $touch _file_ touch: creating `_file_': Permission denied If I remove the R/O attribute (via Windows Explorer) and try again (note that the same permissions are shown via `ls'): $ls -l _file_ -r--r--r-- 1 gunnar Domain U 1148 Jul 4 16:22 _file_ $touch _file_ (succesfull) So, I guess the problem is the R/O flag. Is it so that CVS sets the read-only flag for files with the ``watch on'' flag set? I found http://www.cygwin.com/ml/cygwin/2000-01/msg00507.html describing ``file-attributes vs. ntsec'' in the documentation. Local machine: $echo $CYGWIN tty ntsec $uname -a CYGWIN_NT-5.0 NORLING 1.3.2(0.39/3/2) 2001-05-20 23:28 i686 unknown $cvs --version Concurrent Versions System (CVS) 1.11 (client/server) Copyright (c) 1989-2000 Brian Berliner, david d `zoo' zuhn, Jeff Polk, and other authors $ cygcheck -s Cygnus Win95/NT Configuration Diagnostics Current System Time: Wed Jul 4 16:50:17 2001 WinNT Ver 5.0 build 2195 Service Pack 2 Path: /home/gunnar/bin /usr/bin /usr/local/bin /usr/X11R6/bin /usr/bin /cygdrive/c/Win32-SDKs/perl/bin/ /cygdrive/c/WINNT/system32 /cygdrive/c/WINNT /cygdrive/c/WINNT/System32/Wbem /cygdrive/c/WIN32-~1/tcltk/bin /cygdrive/c/Program Files/Microsoft SQL Server/80/Tools/BINN /cygdrive/c/Program Files/Resource Pro Kit/ /cygdrive/c/Program Files/SecureCRT 3.0 /cygdrive/c/Program Files/emacs207/bin /cygdrive/c/Program Files/emacsen/bin /cygdrive/c/Program Files/Microsoft Office/Office /cygdrive/c/Program Files/Microsoft Visual Studio/Common/Tools/WinNT /cygdrive/c/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin /cygdrive/c/Program Files/Microsoft Visual Studio/Common/Tools /cygdrive/c/Program Files/Microsoft Visual Studio/VC98/bin /cygdrive/c/Win32-SDKs/java/jdk1.2.2/bin /home/gunnar/workspace/LokomoCds-wrk/bin SysDir: C:\WINNT\System32 WinDir: C:\WINNT PWD = `/home/gunnar/workspace/temp/LokomoCds/templates' CYGWIN = `tty ntsec' USER = `gunnar' MAKE_MODE = `unix' HOME = `/home/gunnar' Use `-r' to scan registry a: fd N/A N/A c: hd NTFS 13484Mb 91% CP CS UN PA FC SYS d: cd N/A N/A e: net N/A N/A h: hd NTFS 5208Mb 73% CP CS UN PA FC HOME s: hd FAT 384Mb 99% CP UN SWP C:\cygwin\bin /usr/bin system binmode C:\cygwin\lib /usr/lib system binmode C:\cygwin / system binmode H: /home system binmode c: /cygdrive/c system binmode,noumount s: /cygdrive/s system binmode,noumount Found: C:\cygwin\bin\bash.exe Found: C:\cygwin\bin\cat.exe Found: C:\cygwin\bin\cpp.exe Found: C:\cygwin\bin\find.exe Found: C:\cygwin\bin\gcc.exe Found: C:\cygwin\bin\gdb.exe Found: C:\cygwin\bin\ld.exe Found: C:\cygwin\bin\ls.exe Found: C:\cygwin\bin\make.exe Found: C:\cygwin\bin\sh.exe 56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll 45k 2001/04/25 C:\cygwin\bin\cygform5.dll 18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll 17k 2001/01/07 C:\cygwin\bin\cyghistory4.dll 14k 2000/10/23 C:\cygwin\bin\cygintl.dll 81k 2001/04/28 C:\cygwin\bin\cygitcl30.dll 35k 2001/04/28 C:\cygwin\bin\cygitk30.dll 45k 2000/10/22 C:\cygwin\bin\cygjbig1.dll 119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll 26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll 156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll 226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll 15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll 163k 2001/05/06 C:\cygwin\bin\cygpng2.dll 108k 2001/01/07 C:\cygwin\bin\cygreadline4.dll 390k 2001/04/28 C:\cygwin\bin\cygtcl80.dll 5k 2001/04/28 C:\cygwin\bin\cygtclpip80.dll 10k 2001/04/28 C:\cygwin\bin\cygtclreg80.dll 245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll 623k 2001/04/28 C:\cygwin\bin\cygtk80.dll 41k 2001/05/28 C:\cygwin\bin\cygXpm-noX4.dll 45k 2000/11/20 C:\cygwin\bin\cygXpm-X4.dll 49k 2001/02/03 C:\cygwin\bin\cygz.dll 678k 2001/05/21 C:\cygwin\bin\cygwin1.dll Cygwin DLL version info: dll major: 1003 dll minor: 2 dll epoch: 19 dll bad signal mask: 19005 dll old termios: 5 dll malloc env: 28 api major: 0 api minor: 39 shared data: 3 dll identifier: cygwin1 mount registry: 2 cygnus registry name: Cygnus Solutions cygwin registry name: Cygwin program options name: Program Options cygwin mount registry name: mounts v2 cygdrive flags: cygdrive flags cygdrive prefix: cygdrive prefix cygdrive default prefix: build date: Sun May 20 23:28:17 EDT 2001 shared id: cygwin1S3 /Gunnar Norling Senior Software Developer Lokomo Systems AB mailto: gunnar AT lokomo DOT com --------------- http://www.lokomo.com --------------- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/