public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: deleting a file ending with a dot
@ 2004-01-16 12:29 Morche Matthias
  2004-01-16 14:06 ` Baurjan Ismagulov
  0 siblings, 1 reply; 31+ messages in thread
From: Morche Matthias @ 2004-01-16 12:29 UTC (permalink / raw)
  To: cygwin

Are You shure the filename ends with that dot? Maybe there are unreadable chars appended, so Yozu never gave the correct filename when deleting...
I tried to create a file ending with a dot and did not succeed.


> -----Original Message-----
> From: cygwin-owner@cygwin.com 
> [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Baurjan Ismagulov
> Sent: Friday, January 16, 2004 12:57 PM
> To: cygwin@sources.redhat.com
> Subject: deleting a file ending with a dot
> 
> 
> Hello,
> 
> tar has created a file ending with a dot, and now I can't delete it
> (I've tried rm, del in cmd, explorer, far, unlink call with 
> and without
> -mno-cygwin). What would you suggest before I search an 8-GB 
> volume for
> the directory entry with a disk editor? I would appreciate any help
> (pointers to NTFS directory structure description also welcome).
> Scandisk didn't report any problems.
> 
> Thanks in advance,
> Baurjan.
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 12:29 deleting a file ending with a dot Morche Matthias
@ 2004-01-16 14:06 ` Baurjan Ismagulov
  0 siblings, 0 replies; 31+ messages in thread
From: Baurjan Ismagulov @ 2004-01-16 14:06 UTC (permalink / raw)
  To: cygwin

Hello, Morche!

On Fri, Jan 16, 2004 at 01:26:55PM +0100, Morche Matthias wrote:
> Are You shure the filename ends with that dot? Maybe there are unreadable chars appended, so Yozu never gave the correct filename when deleting...

ls |od -ctu1 shows:
0000000   c   a   c   h   e   d   m   e   t   r   i   c   s   .  \n
         99  97  99 104 101 100 109 101 116 114 105  99 115  46  10
0000017

Far and explorer do not ask for the name, I just point and click.


> I tried to create a file ending with a dot and did not succeed.

I've created it on ext2, tar it, then untar to ntfs.


With kind regards,
Baurjan.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 14:13     ` Dave Korn
@ 2004-01-21 18:33       ` Baurjan Ismagulov
  0 siblings, 0 replies; 31+ messages in thread
From: Baurjan Ismagulov @ 2004-01-21 18:33 UTC (permalink / raw)
  To: cygwin

Hello, All!

To summarize:

* I couldn't see the permissions of the file.

* ls |od suggests that there were no hidden chars.

* Wildcards/tab find the file, but deleting fails with ENOENT.

* The file has not been opened, and the problem persisted after reboot.

* Scandisk didn't complain about a bad file name.

* I couldn't move the upper directory (don't remember the error message
  any more).

I was able to delete the file using its 8.3 name, mentioned in another
thread.

Thanks much for your help!

With kind regards,
Baurjan.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 12:11 Baurjan Ismagulov
  2004-01-16 12:26 ` Dave Korn
@ 2004-01-17 10:36 ` Gene C. Ruzicka
  1 sibling, 0 replies; 31+ messages in thread
From: Gene C. Ruzicka @ 2004-01-17 10:36 UTC (permalink / raw)
  To: Baurjan Ismagulov, cygwin


> Hello,
> 
> tar has created a file ending with a dot, and now I can't delete it
> (I've tried rm, del in cmd, explorer, far, unlink call with and without
> -mno-cygwin). What would you suggest before I search an 8-GB volume for
> the directory entry with a disk editor? I would appreciate any help
> (pointers to NTFS directory structure description also welcome).
> Scandisk didn't report any problems.
> 
> Thanks in advance,
> Baurjan.
> 

i often mistype and end up with a file with a syntactically invalid name. the way
i usually delete such files is to employ "rm -i *," which then prompts
for the removal of every file in the directory. it seems to work even 
for filenames with invalid syntax.

gene


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
  2004-01-16 23:04       ` Christopher Faylor
@ 2004-01-17  2:08         ` Rafael Kitover
  0 siblings, 0 replies; 31+ messages in thread
From: Rafael Kitover @ 2004-01-17  2:08 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 850 bytes --]

>-----Original Message-----
>From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Christopher Faylor
>Sent: Friday, January 16, 2004 1:58 PM
>To: cygwin@cygwin.com
>Subject: Re: deleting a file ending with a dot
>
>On Fri, Jan 16, 2004 at 12:37:01PM -0800, Andrew DeFaria wrote:
>>(It'd be nice if fuser worked under Cygwin but I realize that might be a
>>significant challenge to implement).
>
>sysinternals has something like this so it is feasible.  Don't they even
>release source for some packages?  Could be an interesting project.

Yup, I've looked through a bunch of it, interesting stuff.

http://www.sysinternals.com/ntw2k/source.shtml 

I got the "netstatp" package from here: http://www.sysinternals.com/ntw2k/source/tcpview.shtml 

To compile with Cygwin, not exactly fuser, but still interesting, patch attached.

[-- Attachment #2: netstatp-cygwin.patch --]
[-- Type: application/octet-stream, Size: 2044 bytes --]

diff -ruN -x '*.o' -x '*.res' -x '*.exe' netstatp.orig/Makefile netstatp/Makefile
--- netstatp.orig/Makefile	1969-12-31 16:00:00.000000000 -0800
+++ netstatp/Makefile	2004-01-16 02:12:06.859375000 -0800
@@ -0,0 +1,15 @@
+all: netstatp.exe
+
+netstatp.exe: netstatp.o netstatp.res
+	gcc netstatp.o netstatp.res -o netstatp.exe -liphlpapi
+
+netstatp.o: netstatp.c netstatp.h
+	gcc -c netstatp.c 
+
+netstatp.res: netstatp.rc resource.h
+	windres -O coff netstatp.rc netstatp.res
+
+clean:
+	rm -f netstatp.exe netstatp.o netstatp.res
+
+.PHONY: all clean
diff -ruN -x '*.o' -x '*.res' -x '*.exe' netstatp.orig/netstatp.c netstatp/netstatp.c
--- netstatp.orig/netstatp.c	2002-03-30 04:30:44.000000000 -0800
+++ netstatp/netstatp.c	2004-01-16 01:55:17.781250000 -0800
@@ -13,7 +13,14 @@
 //------------------------------------------------------------
 #include "windows.h"
 #include "stdio.h"
-#include "winsock.h"
+
+#ifdef __CYGWIN__
+  #include "netdb.h"
+  #include "sys/socket.h"
+#else
+  #include "winsock.h"
+#endif
+
 #include "iprtrmib.h"
 #include "tlhelp32.h"
 #include "iphlpapi.h"
@@ -376,7 +383,9 @@
 {
 	DWORD		error, dwSize;
 	WORD		wVersionRequested;
+#ifndef __CYGWIN__
 	WSADATA		wsaData;
+#endif
 	HANDLE		hProcessSnap;
 	PMIB_TCPEXTABLE tcpExTable;
 	PMIB_TCPTABLE tcpTable;
@@ -408,12 +417,14 @@
 	//
 	// Initialize winsock
 	//
+#ifndef __CYGWIN__
 	wVersionRequested = MAKEWORD( 1, 1 );
 	if( WSAStartup(  wVersionRequested, &wsaData ) ) {
 
 		printf("Could not initialize Winsock.\n");
 		return -1;
 	}
+#endif
 
 	//
 	// Get options
diff -ruN -x '*.o' -x '*.res' -x '*.exe' netstatp.orig/netstatp.h netstatp/netstatp.h
--- netstatp.orig/netstatp.h	2002-03-26 07:44:16.000000000 -0800
+++ netstatp/netstatp.h	2004-01-16 01:55:32.250000000 -0800
@@ -55,4 +55,5 @@
 typedef struct {
 	DWORD			dwNumEntries;
 	MIB_UDPEXROW	table[ANY_SIZE];
-} MIB_UDPEXTABLE, *PMIB_UDPEXTABLE;
\ No newline at end of file
+} MIB_UDPEXTABLE, *PMIB_UDPEXTABLE;
+


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 20:57     ` Andrew DeFaria
  2004-01-16 21:53       ` Rafael Kitover
@ 2004-01-16 23:04       ` Christopher Faylor
  2004-01-17  2:08         ` Rafael Kitover
  1 sibling, 1 reply; 31+ messages in thread
From: Christopher Faylor @ 2004-01-16 23:04 UTC (permalink / raw)
  To: cygwin

On Fri, Jan 16, 2004 at 12:37:01PM -0800, Andrew DeFaria wrote:
>(It'd be nice if fuser worked under Cygwin but I realize that might be a 
>significant challenge to implement).

sysinternals has something like this so it is feasible.  Don't they even
release source for some packages?  Could be an interesting project.

Hmm.  That month worth of free developer time is really getting eaten up.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 16:18       ` Dave Korn
  2004-01-16 16:22         ` Christopher Faylor
@ 2004-01-16 21:56         ` Brian Dessent
  1 sibling, 0 replies; 31+ messages in thread
From: Brian Dessent @ 2004-01-16 21:56 UTC (permalink / raw)
  To: 'cygwin'

Dave Korn wrote:

> > David T-G wrote:
> > >
> > > [Does anyone know why this thread is showing up in my inbox
> > instead of
> > > being properly filtered?  Has there been a list address change?]
> > >
> > Do you have your filters set to recognize both
> > cygwin@cygwin.com and cygwin@sources.redhat.com? Both
> > addresses get to this list.
> 
>   My filters failed today for just the same reason.  I've decided that
> checking for "cygwin-owner" in the From: field is probably most effective.

I find it's always much more reliable to filter on one of the mailing
list headers that the software adds.  For this list I have a rule that
checks that the "Mailing-List:" header contains "cygwin".  Some lists
use "List-ID:" or "X-Mailing-List:" so you have to look at the raw
source.  But doing it this way is very reliable, and doesn't depend on
any of the TO or CC or FROM fields which can sometimes be weird (like if
someone BCC'd the list or whatever.)

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
  2004-01-16 20:57     ` Andrew DeFaria
@ 2004-01-16 21:53       ` Rafael Kitover
  2004-01-16 23:04       ` Christopher Faylor
  1 sibling, 0 replies; 31+ messages in thread
From: Rafael Kitover @ 2004-01-16 21:53 UTC (permalink / raw)
  To: cygwin

>-----Original Message-----
>From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf Of Andrew DeFaria
>Sent: Friday, January 16, 2004 12:39 PM
>To: cygwin@cygwin.com
>Subject: Re: deleting a file ending with a dot

>(It'd be nice if fuser worked under Cygwin but I realize that might be a
>significant challenge to implement).

Ahh, but this sort of insanity is usually the most fun. I'll take a look after I get screen and pidentd working :)

-- 
Rafael

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 14:01   ` Baurjan Ismagulov
  2004-01-16 14:13     ` Dave Korn
@ 2004-01-16 20:57     ` Andrew DeFaria
  2004-01-16 21:53       ` Rafael Kitover
  2004-01-16 23:04       ` Christopher Faylor
  1 sibling, 2 replies; 31+ messages in thread
From: Andrew DeFaria @ 2004-01-16 20:57 UTC (permalink / raw)
  To: cygwin

Baurjan Ismagulov wrote:

> Hello, David!
>
> On Fri, Jan 16, 2004 at 12:05:31PM -0000, Dave Korn wrote:
>
>> Maybe there's a problem with the perms on it? What output do you get from
>> "ls -la file." and from "cacls file." ?
>
> ls: cachedmetrics.: No such file or directory
>
> I don't have cacls installed, but getfacl also says "No such file or 
> directory".
>
>> BTW, this would have been a better bug report...
>
> I'm afraid that this is a Windows feature :) -- to be able to create 
> files and then not to be able to work with them :/ .

If ls and getfacl say there is no file then who are you to question 
their judgment! :-)

All kidding aside, often when I see this what is happening is that the 
file has been deleted but some process has it open. Download Process 
Explorer from the SysInternals site, install and run it then do a search 
for "cachedmetrics". Note there are two searchs: One is a DLL search and 
the other is a handle search. Try both. If you find any processes in the 
list then those processes have the file open. Either kill them or right 
click on the line with that string it in and select File: Close.

Note that if the file is opened via the network (i.e. the process is 
running on host B and is accessing this "cachedmetrics." file via the 
network) then the locally running Process Explorer will not be able to 
find anything. In such a case I think you can simple disconnect or 
otherwise stop file sharing from the local machine, which will prompt 
that other processes have files open and do you wish to disconnect.

(It'd be nice if fuser worked under Cygwin but I realize that might be a 
significant challenge to implement).
-- 
The gene pool could use a little chlorine.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 12:26 ` Dave Korn
  2004-01-16 14:01   ` Baurjan Ismagulov
@ 2004-01-16 20:44   ` Andrew DeFaria
  1 sibling, 0 replies; 31+ messages in thread
From: Andrew DeFaria @ 2004-01-16 20:44 UTC (permalink / raw)
  To: cygwin

Dave Korn wrote:

>> -----Original Message-----
>> From: cygwin-owner On Behalf Of Baurjan Ismagulov
>
>> tar has created a file ending with a dot, and now I can't delete it 
>> (I've tried rm, del in cmd, explorer, far, unlink call with and 
>> without -mno-cygwin). What would you suggest before I search an 8-GB 
>> volume for the directory entry with a disk editor? I would appreciate 
>> any help (pointers to NTFS directory structure description also 
>> welcome). Scandisk didn't report any problems.
>
> Maybe there's a problem with the perms on it? What output do you get 
> from "ls -la file." and from "cacls file." ?
>
> BTW, this would have been a better bug report if you had told us what 
> actually *happened* when you tried all those things - did you get 
> error messages? Did unlink return an error code? Or did just nothing 
> happen? Or did your machine BSOD and start smoke pouring out the back? 
> Knowing what happened is the first clue to start working out what went 
> wrong, you see.

It never ceases to amaze me how people tend to forget to include such 
critical data. My usual response is a question: What was your first 
indication that it failed?
-- 
Everywhere is walking distance if you have the time.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 16:46   ` Igor Pechtchanski
@ 2004-01-16 18:10     ` Christopher Faylor
  0 siblings, 0 replies; 31+ messages in thread
From: Christopher Faylor @ 2004-01-16 18:10 UTC (permalink / raw)
  To: cygwin

On Fri, Jan 16, 2004 at 11:34:21AM -0500, Igor Pechtchanski wrote:
>On Fri, 16 Jan 2004, Christopher Faylor wrote:
>> Please! don't add clear text mail addresses in email messages.
>
>This is a good rule of thumb, but it's rather useless for the cygwin@ list
>address itself -- the first line of any message in the archives says 'This
>is the mail archive of the cygwin<at>cygwin<dot>com mailing list for the
>Cygwin project.' (unscrambled, of course). :-)

Since I'm sure your email address has been mentioned many times in this
list, have you stopped asking people not to do quote it?  It's
irrelevant if it already exists.  There is no reason to add to the total
mass of available addresses for people to harvest.

Btw, I understand that Bill knows better.  I've made this mistake any
number of times myself.  I know how annoying it is to be "called to
task" for a simple innocent mistake like this.  It's especially annoying
that we have to consider it "a mistake".  We should be able to use email
addresses with impunity.

I have been writing, in my spare time, an email filter to munge this kind
of innocent usage but I've been too swamped lately to move forward on
this.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
@ 2004-01-16 17:34 Hughes, Bill
  0 siblings, 0 replies; 31+ messages in thread
From: Hughes, Bill @ 2004-01-16 17:34 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Sent: 16 January 2004 16:34 From: Igor Pechtchanski
> > On Fri, Jan 16, 2004 at 04:21:17PM -0000, Hughes, Bill wrote:
> > >Sent: 16 January 2004 16:15 From: Christopher Faylor
> > >> If you mean the "Sender" field, then, yes, this is one way to filter.
> > >> Or you can filter on the Mailing-List field or the List-* fields.
> > >>
> > >> It's really not too hard to figure something to filter on if you look
> > >> at the full headers.
> > >>
> > >> (and now we hear from all of the people who say "My client doesn't
allow
> > >that!!!!")
> > >
> > >If I can do it in Outlook... :-)
> > >I just filter on cygwin... anywhere in the header.
> >
> > Please! don't add clear text mail addresses in email messages.
>This is a good rule of thumb, but it's rather useless for the cygwin@ list
>address itself -- the first line of any message in the archives says 'This
>is the mail archive of the cygwin<at>cygwin<dot>com mailing list for the
>Cygwin project.' (unscrambled, of course). :-)

I know that, but let's not make it any easier, and it's the _principle_ of
the thing, after all.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 16:34 ` Christopher Faylor
@ 2004-01-16 16:46   ` Igor Pechtchanski
  2004-01-16 18:10     ` Christopher Faylor
  0 siblings, 1 reply; 31+ messages in thread
From: Igor Pechtchanski @ 2004-01-16 16:46 UTC (permalink / raw)
  To: cygwin

On Fri, 16 Jan 2004, Christopher Faylor wrote:

> On Fri, Jan 16, 2004 at 04:21:17PM -0000, Hughes, Bill wrote:
> >Sent: 16 January 2004 16:15 From: Christopher Faylor
> >> If you mean the "Sender" field, then, yes, this is one way to filter.
> >> Or you can filter on the Mailing-List field or the List-* fields.
> >>
> >> It's really not too hard to figure something to filter on if you look
> >> at the full headers.
> >>
> >> (and now we hear from all of the people who say "My client doesn't allow
> >that!!!!")
> >
> >If I can do it in Outlook... :-)
> >I just filter on cygwin... anywhere in the header.
>
> Please! don't add clear text mail addresses in email messages.

Chris,

This is a good rule of thumb, but it's rather useless for the cygwin@ list
address itself -- the first line of any message in the archives says 'This
is the mail archive of the cygwin<at>cygwin<dot>com mailing list for the
Cygwin project.' (unscrambled, of course). :-)
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
@ 2004-01-16 16:37 Hughes, Bill
  0 siblings, 0 replies; 31+ messages in thread
From: Hughes, Bill @ 2004-01-16 16:37 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Sent: 16 January 2004 16:25 From: Christopher Faylor
> Please! don't add clear text mail addresses in email messages.
Argh! Sorry. I have to work to get Outlook to format as I want (remove
addys) and then I manually put one in. Doh.
Apologies again, the only explanation (not excuse) is that it's Friday pm
here .

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 16:29 Hughes, Bill
@ 2004-01-16 16:34 ` Christopher Faylor
  2004-01-16 16:46   ` Igor Pechtchanski
  0 siblings, 1 reply; 31+ messages in thread
From: Christopher Faylor @ 2004-01-16 16:34 UTC (permalink / raw)
  To: cygwin

On Fri, Jan 16, 2004 at 04:21:17PM -0000, Hughes, Bill wrote:
>Sent: 16 January 2004 16:15 From: Christopher Faylor
>> If you mean the "Sender" field, then, yes, this is one way to filter.
>> Or you can filter on the Mailing-List field or the List-* fields.
>>
>> It's really not too hard to figure something to filter on if you look
>> at the full headers.
>>
>> (and now we hear from all of the people who say "My client doesn't allow
>that!!!!")
>
>If I can do it in Outlook... :-)
>I just filter on cygwin... anywhere in the header.

Please! don't add clear text mail addresses in email messages.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
@ 2004-01-16 16:29 Hughes, Bill
  2004-01-16 16:34 ` Christopher Faylor
  0 siblings, 1 reply; 31+ messages in thread
From: Hughes, Bill @ 2004-01-16 16:29 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

Sent: 16 January 2004 16:15 From: Christopher Faylor
> If you mean the "Sender" field, then, yes, this is one way to filter.
> Or you can filter on the Mailing-List field or the List-* fields.
>
> It's really not too hard to figure something to filter on if you look
> at the full headers.
>
> (and now we hear from all of the people who say "My client doesn't allow
that!!!!")

If I can do it in Outlook... :-)
I just filter on cygwin@cygwin.com anywhere in the header.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 16:18       ` Dave Korn
@ 2004-01-16 16:22         ` Christopher Faylor
  2004-01-16 21:56         ` Brian Dessent
  1 sibling, 0 replies; 31+ messages in thread
From: Christopher Faylor @ 2004-01-16 16:22 UTC (permalink / raw)
  To: cygwin

On Fri, Jan 16, 2004 at 04:02:49PM -0000, Dave Korn wrote:
>My filters failed today for just the same reason.  I've decided that
>checking for "cygwin-owner" in the From: field is probably most
>effective.

If you mean the "Sender" field, then, yes, this is one way to filter.
Or you can filter on the Mailing-List field or the List-* fields.

It's really not too hard to figure something to filter on if you look
at the full headers.

(and now we hear from all of the people who say "My client doesn't allow
that!!!!")

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
  2004-01-16 15:20     ` David Fritz
  2004-01-16 15:37       ` David T-G
@ 2004-01-16 16:18       ` Dave Korn
  2004-01-16 16:22         ` Christopher Faylor
  2004-01-16 21:56         ` Brian Dessent
  1 sibling, 2 replies; 31+ messages in thread
From: Dave Korn @ 2004-01-16 16:18 UTC (permalink / raw)
  To: 'cygwin'

 

> -----Original Message-----
> From: cygwin-owner@cygwin.com 
> [mailto:cygwin-owner@cygwin.com] On Behalf Of David Fritz
> Sent: 16 January 2004 14:45
> Cc: cygwin
> Subject: Re: deleting a file ending with a dot
> 
> David T-G wrote:
> > 
> > [Does anyone know why this thread is showing up in my inbox 
> instead of 
> > being properly filtered?  Has there been a list address change?]
> > 
> Do you have your filters set to recognize both 
> cygwin@cygwin.com and cygwin@sources.redhat.com? Both 
> addresses get to this list.


  My filters failed today for just the same reason.  I've decided that
checking for "cygwin-owner" in the From: field is probably most effective.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 15:20     ` David Fritz
@ 2004-01-16 15:37       ` David T-G
  2004-01-16 16:18       ` Dave Korn
  1 sibling, 0 replies; 31+ messages in thread
From: David T-G @ 2004-01-16 15:37 UTC (permalink / raw)
  To: CygWin Users' List

[-- Attachment #1: Type: text/plain, Size: 876 bytes --]

David --

...and then David Fritz said...
% 
% David T-G wrote:
% >
% >[Does anyone know why this thread is showing up in my inbox instead of
% >being properly filtered?  Has there been a list address change?]
% >
% Do you have your filters set to recognize both cygwin@cygwin.com and 
% cygwin@sources.redhat.com? Both addresses get to this list.

Ahhh...  That's it; my procmail rule

  :0 :
  * (^TO|^FROM)cygwin.*@cygwin.com
  F.cygwin
  
only knows about cygwin.com.  I guess I'll add the redhat addy.


% 
% HTH


Thanks!! & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
@ 2004-01-16 15:24 Buchbinder, Barry (NIH/NIAID)
  0 siblings, 0 replies; 31+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) @ 2004-01-16 15:24 UTC (permalink / raw)
  To: cygwin

If Windows lets tar create a file that Explorer cannot remove, it sounds
like a Windows problem.

(1)
Try rebooting.  Maybe one of your earlier attempts to delete succeeded but
some file name cache is preserving the name.  (I've noticed that on rare
occasions a file gets deleted but Explorer still shows it.)

(2)
Run scandisk.  Maybe it will find the problem and fix it.

(3)
I'd try this in Explorer.
(a) Create a new temporary directory.
(b) Copy or move everything in the directory with the troublesome file to
the temporary directory.
(c) Delete the directory with the troublesome file.  I'd try holding down
the shift key, which really deletes, rather than just send the directory to
the Recycle Bin.  (We're trying to fix the problem not just move it.)  If it
won't delete, just move it somewhere out of the way and forget about it for
now.  (Maybe someday you will find that it has fixed itself.)
(d) Move or rename the temporary directory to the name and place of the now
deleted directory with the troublesome file.  Or recreate the deleted
directory and move stuff back.

-----Original Message-----
From: Baurjan Ismagulov [mailto:ibr@ata.cs.hun.edu.tr] 
Sent: Friday, January 16, 2004 6:57 AM
To: cygwin@sources.redhat.com
Subject: deleting a file ending with a dot

Hello,

tar has created a file ending with a dot, and now I can't delete it
(I've tried rm, del in cmd, explorer, far, unlink call with and without
-mno-cygwin). What would you suggest before I search an 8-GB volume for
the directory entry with a disk editor? I would appreciate any help
(pointers to NTFS directory structure description also welcome).
Scandisk didn't report any problems.

Thanks in advance,
Baurjan.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 14:14   ` David T-G
  2004-01-16 14:20     ` David T-G
@ 2004-01-16 15:20     ` David Fritz
  2004-01-16 15:37       ` David T-G
  2004-01-16 16:18       ` Dave Korn
  1 sibling, 2 replies; 31+ messages in thread
From: David Fritz @ 2004-01-16 15:20 UTC (permalink / raw)
  Cc: cygwin

David T-G wrote:
> 
> [Does anyone know why this thread is showing up in my inbox instead of
> being properly filtered?  Has there been a list address change?]
> 
Do you have your filters set to recognize both cygwin@cygwin.com and 
cygwin@sources.redhat.com? Both addresses get to this list.

HTH


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
@ 2004-01-16 14:46 Peter J. Acklam
  0 siblings, 0 replies; 31+ messages in thread
From: Peter J. Acklam @ 2004-01-16 14:46 UTC (permalink / raw)
  To: Baurjan Ismagulov, cygwin

Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr> wrote:
>
> Peter J. Acklam wrote:
> >
> >     ls -1ib DIR             # find inode number NUM
>
> ls: cachedmetrics.: No such file or directory

Huh.  ls seems to  notice that the directory contains a
file named something like "cachedmetrics.", but yet it
is able to find it.

A wild guess is that readdir() finds it, and tells ls that
the file exists, but when ls does a stat() on the file, it
fails and that's why you get the error.

What is the output if you run the following script with the
directory as the input argument.  It is essentially the
same as "ls -b" but no stat() is done.

------------------------------------------------------
#!/usr/bin/env perl

use strict;
use warnings;

my $dir = shift;

opendir DIR, $dir or die "$dir: can't open directory: $!\n";
for (readdir DIR) {
    #s/([^\040-\176\240-\377])/sprintf '\%03o', ord $1/eg;
    s/([^\040-\176])/sprintf '\%03o', ord $1/eg;
    print $_, "\n";
}
closedir DIR or die "$dir: can't open directory: $!\n";
------------------------------------------------------

> > But I wonder how you created this file in the first place.
> > It seems to me that trailing dots are removed.
>
> Wow! What are the versions of Windows, cygwin and tar?
> I use 2000, 1.3.22, 1.13.25.

Windows XP, Cygwin 1.5.5, tar 1.13.25.

Peter

-- 
Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 14:14   ` David T-G
@ 2004-01-16 14:20     ` David T-G
  2004-01-16 15:20     ` David Fritz
  1 sibling, 0 replies; 31+ messages in thread
From: David T-G @ 2004-01-16 14:20 UTC (permalink / raw)
  To: CygWin Users' List, cygwin

[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]

Baurjan, et al --

[Does anyone know why this thread is showing up in my inbox instead of
being properly filtered?  Has there been a list address change?]

...and then Baurjan Ismagulov said...
% 
% > But I wonder how you created this file in the first place.  It
% > seems to me that trailing dots are removed.
% 
% Wow! What are the versions of Windows, cygwin and tar? I use 2000,
% 1.3.22, 1.13.25.

I'd say you've stumbled onto a strange situation rather than that a
different version of Windows will behave differently; the general
behavior is that the dot is really transparent and only there for
the 8.3 separation, so if you try to create a trailing dot file the
dot is ignored.  Of course, you broke it ;-)

Have you tried letting your wildcards help you?  Things like

  bash -
  rm cachedmetric*
  mv cachedmetric* cm

  cmd -
  del cachedmetric*
  move cachedmetric* cm
  ren cachedmetric* cm

might work if this is the only file that matches the pattern.


% 
% 
% With kind regards,
% Baurjan.


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 14:07 ` Baurjan Ismagulov
@ 2004-01-16 14:14   ` David T-G
  2004-01-16 14:20     ` David T-G
  2004-01-16 15:20     ` David Fritz
  0 siblings, 2 replies; 31+ messages in thread
From: David T-G @ 2004-01-16 14:14 UTC (permalink / raw)
  To: CygWin Users' List, cygwin

[-- Attachment #1: Type: text/plain, Size: 1376 bytes --]

Baurjan, et al --

[Does anyone know why this thread is showing up in my inbox instead of
being properly filtered?  Has there been a list address change?]

...and then Baurjan Ismagulov said...
% 
% > But I wonder how you created this file in the first place.  It
% > seems to me that trailing dots are removed.
% 
% Wow! What are the versions of Windows, cygwin and tar? I use 2000,
% 1.3.22, 1.13.25.

I'd say you've stumbled onto a strange situation rather than that a
different version of Windows will behave differently; the general
behavior is that the dot is really transparent and only there for
the 8.3 separation, so if you try to create a trailing dot file the
dot is ignored.  Of course, you broke it ;-)

Have you tried letting your wildcards help you?  Things like

  bash -
  rm cachedmetric*
  mv cachedmetric* cm

  cmd -
  del cachedmetric*
  move cachedmetric* cm
  ren cachedmetric* cm

might work if this is the only file that matches the pattern.


% 
% 
% With kind regards,
% Baurjan.


HTH & HAND

:-D
-- 
David T-G                      * There is too much animal courage in 
(play) davidtg@justpickone.org * society and not sufficient moral courage.
(work) davidtgwork@justpickone.org  -- Mary Baker Eddy, "Science and Health"
http://justpickone.org/davidtg/      Shpx gur Pbzzhavpngvbaf Qrprapl Npg!


[-- Attachment #2: Type: application/pgp-signature, Size: 187 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
  2004-01-16 14:01   ` Baurjan Ismagulov
@ 2004-01-16 14:13     ` Dave Korn
  2004-01-21 18:33       ` Baurjan Ismagulov
  2004-01-16 20:57     ` Andrew DeFaria
  1 sibling, 1 reply; 31+ messages in thread
From: Dave Korn @ 2004-01-16 14:13 UTC (permalink / raw)
  To: cygwin

 

> >   Maybe there's a problem with the perms on it?  What output do you 
> > get from "ls -la file." and from "cacls file." ?
> 
> ls: cachedmetrics.: No such file or directory
> 
> I don't have cacls installed, but getfacl also says "No such 
> file or directory".

> Thanks for the tip :) . All programs said that they cannot 
> find such a file. Unlink returned ENOENT. When I click on 
> "Properties", there is no file name in the window.

  Then it does sound like a filename with an illegal char in it; various
windoze versions do have problems with them, so it's maybe the case that
it's not actually a period on the end of the filename, but an unprintable
ascii char that ls and so on output as a period.  To test this theory, try
using "ls -b" to view any unprintable chars as octal.

  You could also try deleting it by pattern matching, such as "rm
cachedmetrics?".  Or have you tried dragging it straight into the recycle
bin from explorer?  Or entering a name in the blank filename space in the
properties sheet?  Or renaming it from command line, dos or bash, using
pattern-matching?

  I've had these sorts of files turn up once in a while.  They can be a
nuisance but I've always managed to get rid of them in the end with one or
other of the above sorts of solutions.


      DaveK



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 13:49 Peter J. Acklam
@ 2004-01-16 14:07 ` Baurjan Ismagulov
  2004-01-16 14:14   ` David T-G
  0 siblings, 1 reply; 31+ messages in thread
From: Baurjan Ismagulov @ 2004-01-16 14:07 UTC (permalink / raw)
  To: cygwin

Hello, Peter!

On Fri, Jan 16, 2004 at 01:29:00PM +0100, Peter J. Acklam wrote:
>     ls -1ib DIR                               # find inode number NUM

ls: cachedmetrics.: No such file or directory


> But I wonder how you created this file in the first place.  It
> seems to me that trailing dots are removed.

Wow! What are the versions of Windows, cygwin and tar? I use 2000,
1.3.22, 1.13.25.


With kind regards,
Baurjan.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
@ 2004-01-16 14:07 Morche Matthias
  0 siblings, 0 replies; 31+ messages in thread
From: Morche Matthias @ 2004-01-16 14:07 UTC (permalink / raw)
  To: cygwin

Your answer confirms my assumption that there are hidden chars trailing the dot: try ls -q cachedmetrics* and use the result to delete...


> -----Original Message-----
> From: cygwin-owner@cygwin.com 
> [mailto:cygwin-owner@cygwin.com]On Behalf
> Of Baurjan Ismagulov
> Sent: Friday, January 16, 2004 2:53 PM
> To: cygwin@sources.redhat.com
> Subject: Re: deleting a file ending with a dot
> 
> 
> Hello, David!
> 
> On Fri, Jan 16, 2004 at 12:05:31PM -0000, Dave Korn wrote:
> >   Maybe there's a problem with the perms on it?  What 
> output do you get from
> > "ls -la file." and from "cacls file." ?
> 
> ls: cachedmetrics.: No such file or directory
> 
> I don't have cacls installed, but getfacl also says "No such file or
> directory".
> 
> 
> >   BTW, this would have been a better bug report...
> 
> I'm afraid that this is a Windows feature :) -- to be able to create
> files and then not to be able to work with them :/ .
> 
> 
> > ... if you had told us what
> > actually *happened* when you tried all those things - did 
> you get error
> > messages?  Did unlink return an error code?  Or did just 
> nothing happen?  Or
> > did your machine BSOD and start smoke pouring out the back? 
>  Knowing what
> > happened is the first clue to start working out what went 
> wrong, you see.
> 
> Thanks for the tip :) . All programs said that they cannot find such a
> file. Unlink returned ENOENT. When I click on "Properties", 
> there is no
> file name in the window.
> 
> 
> With kind regards,
> Baurjan.
> 
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
> 
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: deleting a file ending with a dot
  2004-01-16 12:26 ` Dave Korn
@ 2004-01-16 14:01   ` Baurjan Ismagulov
  2004-01-16 14:13     ` Dave Korn
  2004-01-16 20:57     ` Andrew DeFaria
  2004-01-16 20:44   ` Andrew DeFaria
  1 sibling, 2 replies; 31+ messages in thread
From: Baurjan Ismagulov @ 2004-01-16 14:01 UTC (permalink / raw)
  To: cygwin

Hello, David!

On Fri, Jan 16, 2004 at 12:05:31PM -0000, Dave Korn wrote:
>   Maybe there's a problem with the perms on it?  What output do you get from
> "ls -la file." and from "cacls file." ?

ls: cachedmetrics.: No such file or directory

I don't have cacls installed, but getfacl also says "No such file or
directory".


>   BTW, this would have been a better bug report...

I'm afraid that this is a Windows feature :) -- to be able to create
files and then not to be able to work with them :/ .


> ... if you had told us what
> actually *happened* when you tried all those things - did you get error
> messages?  Did unlink return an error code?  Or did just nothing happen?  Or
> did your machine BSOD and start smoke pouring out the back?  Knowing what
> happened is the first clue to start working out what went wrong, you see.

Thanks for the tip :) . All programs said that they cannot find such a
file. Unlink returned ENOENT. When I click on "Properties", there is no
file name in the window.


With kind regards,
Baurjan.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
@ 2004-01-16 13:49 Peter J. Acklam
  2004-01-16 14:07 ` Baurjan Ismagulov
  0 siblings, 1 reply; 31+ messages in thread
From: Peter J. Acklam @ 2004-01-16 13:49 UTC (permalink / raw)
  To: Baurjan Ismagulov, cygwin

Baurjan Ismagulov <ibr@ata.cs.hun.edu.tr> wrote:

> tar has created a file ending with a dot, and now I can't delete
> it (I've tried rm, del in cmd, explorer, far, unlink call with
> and without -mno-cygwin). What would you suggest before I search
> an 8-GB volume for the directory entry with a disk editor? I
> would appreciate any help (pointers to NTFS directory structure
> description also welcome).  Scandisk didn't report any problems.

A common way in Unix to delete files with strange names is by
using the inode number:

    ls -1ib DIR                               # find inode number NUM
    find DIR -xdev -inum NUM -exec rm {} \;   # remove the file

but, alas, I don't think that works either.

But I wonder how you created this file in the first place.  It
seems to me that trailing dots are removed.  Here is what I get
when I extract a tar file containing files with trailing dots.
(The tar file was created on Solaris.):

   $ tar xvf bad.tar
   foo/
   foo/bar0
   foo/bar1.
   foo/bar2..
   foo/bar3...
   foo/bar4....
   foo/bar5.....

   $ ls -1 foo
   bar0
   bar1
   bar2
   bar3
   bar4
   bar5

The dots are gone.

Peter

-- 
Peter J. Acklam - pjacklam@online.no - http://home.online.no/~pjacklam


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* RE: deleting a file ending with a dot
  2004-01-16 12:11 Baurjan Ismagulov
@ 2004-01-16 12:26 ` Dave Korn
  2004-01-16 14:01   ` Baurjan Ismagulov
  2004-01-16 20:44   ` Andrew DeFaria
  2004-01-17 10:36 ` Gene C. Ruzicka
  1 sibling, 2 replies; 31+ messages in thread
From: Dave Korn @ 2004-01-16 12:26 UTC (permalink / raw)
  To: cygwin

 

> -----Original Message-----
> From: cygwin-owner On Behalf Of Baurjan Ismagulov

> tar has created a file ending with a dot, and now I can't 
> delete it (I've tried rm, del in cmd, explorer, far, unlink 
> call with and without -mno-cygwin). What would you suggest 
> before I search an 8-GB volume for the directory entry with a 
> disk editor? I would appreciate any help (pointers to NTFS 
> directory structure description also welcome).
> Scandisk didn't report any problems.


  Maybe there's a problem with the perms on it?  What output do you get from
"ls -la file." and from "cacls file." ?

  BTW, this would have been a better bug report if you had told us what
actually *happened* when you tried all those things - did you get error
messages?  Did unlink return an error code?  Or did just nothing happen?  Or
did your machine BSOD and start smoke pouring out the back?  Knowing what
happened is the first clue to start working out what went wrong, you see.


    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

* deleting a file ending with a dot
@ 2004-01-16 12:11 Baurjan Ismagulov
  2004-01-16 12:26 ` Dave Korn
  2004-01-17 10:36 ` Gene C. Ruzicka
  0 siblings, 2 replies; 31+ messages in thread
From: Baurjan Ismagulov @ 2004-01-16 12:11 UTC (permalink / raw)
  To: cygwin

Hello,

tar has created a file ending with a dot, and now I can't delete it
(I've tried rm, del in cmd, explorer, far, unlink call with and without
-mno-cygwin). What would you suggest before I search an 8-GB volume for
the directory entry with a disk editor? I would appreciate any help
(pointers to NTFS directory structure description also welcome).
Scandisk didn't report any problems.

Thanks in advance,
Baurjan.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2004-01-21 18:09 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-16 12:29 deleting a file ending with a dot Morche Matthias
2004-01-16 14:06 ` Baurjan Ismagulov
  -- strict thread matches above, loose matches on Subject: below --
2004-01-16 17:34 Hughes, Bill
2004-01-16 16:37 Hughes, Bill
2004-01-16 16:29 Hughes, Bill
2004-01-16 16:34 ` Christopher Faylor
2004-01-16 16:46   ` Igor Pechtchanski
2004-01-16 18:10     ` Christopher Faylor
2004-01-16 15:24 Buchbinder, Barry (NIH/NIAID)
2004-01-16 14:46 Peter J. Acklam
2004-01-16 14:07 Morche Matthias
2004-01-16 13:49 Peter J. Acklam
2004-01-16 14:07 ` Baurjan Ismagulov
2004-01-16 14:14   ` David T-G
2004-01-16 14:20     ` David T-G
2004-01-16 15:20     ` David Fritz
2004-01-16 15:37       ` David T-G
2004-01-16 16:18       ` Dave Korn
2004-01-16 16:22         ` Christopher Faylor
2004-01-16 21:56         ` Brian Dessent
2004-01-16 12:11 Baurjan Ismagulov
2004-01-16 12:26 ` Dave Korn
2004-01-16 14:01   ` Baurjan Ismagulov
2004-01-16 14:13     ` Dave Korn
2004-01-21 18:33       ` Baurjan Ismagulov
2004-01-16 20:57     ` Andrew DeFaria
2004-01-16 21:53       ` Rafael Kitover
2004-01-16 23:04       ` Christopher Faylor
2004-01-17  2:08         ` Rafael Kitover
2004-01-16 20:44   ` Andrew DeFaria
2004-01-17 10:36 ` Gene C. Ruzicka

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).