Problem with directories turning into files (Patch B)

Greetings,

I am running Patch B.

Yesterday I downloaded Igor’s build of Apache. I untarred it and it
generated some errors about not being able to change permissions (sorry I
don’t know what errors and I cannot risk other machines in the test).

Anyway, Igor is a fan of the GNU file system way of placing files so the tar
tried to put directories under /usr/local/share (among others). I already
had /usr/local/share but after I untarred Apache that directory turned into
a file. That is, I could no longer ‘cd’ into is and sh claimed it was not a
directory. ‘ls -al’ showed it was file also.

After a frustrating several hours I decided to delete these files and
suddenly they became directories. That is …

#cd /usr/local/share
/bin/sh: cd: /usr/local/share - Not a directory
#rm /usr/local/share
#cd /usr/local/share

Is this a known problem? I could be convinced to investigate further but I
think you can probably do it just as easily.

]{ristoph

I have experienced a similar problem, but I think I was running Patch A at
the time. I was adding stuff to the helpviewer directory tree and did a
‘save as’ on a .toc file. At this point the ‘product’ sub-directory turned
itself into a file. When I deleted the ‘product’ file, the directory
(and associated sub-directories) reappeared . It was one of those
occasions when you don’t really believe what you’re seeing, so I convinced
myself I had done something really stupid and ignored it it. Looks like
there’s a real nasty bug “out there”…

I am running Patch B.

Yesterday I downloaded Igor’s build of Apache. I untarred it and it
generated some errors about not being able to change permissions (sorry I
don’t know what errors and I cannot risk other machines in the test).

Anyway, Igor is a fan of the GNU file system way of placing files so the
tar
tried to put directories under /usr/local/share (among others). I already
had /usr/local/share but after I untarred Apache that directory turned
into
a file. That is, I could no longer ‘cd’ into is and sh claimed it was not
a
directory. ‘ls -al’ showed it was file also.

After a frustrating several hours I decided to delete these files and
suddenly they became directories. That is …

#cd /usr/local/share
/bin/sh: cd: /usr/local/share - Not a directory
#rm /usr/local/share
#cd /usr/local/share

Is this a known problem? I could be convinced to investigate further but I
think you can probably do it just as easily.

]{ristoph

I’ve seen this in the original unpatched release too.
But I had invisible files for a while (I could use them, but I couldn’t see them
with ‘ls’ until I 'touch’ed them I think)

cheers
Lance

Jim Douglas wrote:

I have experienced a similar problem, but I think I was running Patch A at
the time. I was adding stuff to the helpviewer directory tree and did a
‘save as’ on a .toc file. At this point the ‘product’ sub-directory turned
itself into a file. When I deleted the ‘product’ file, the directory
(and associated sub-directories) reappeared . It was one of those
occasions when you don’t really believe what you’re seeing, so I convinced
myself I had done something really stupid and ignored it it. Looks like
there’s a real nasty bug “out there”…

I am running Patch B.

Yesterday I downloaded Igor’s build of Apache. I untarred it and it
generated some errors about not being able to change permissions (sorry I
don’t know what errors and I cannot risk other machines in the test).

Anyway, Igor is a fan of the GNU file system way of placing files so the
tar
tried to put directories under /usr/local/share (among others). I already
had /usr/local/share but after I untarred Apache that directory turned
into
a file. That is, I could no longer ‘cd’ into is and sh claimed it was not
a
directory. ‘ls -al’ showed it was file also.

After a frustrating several hours I decided to delete these files and
suddenly they became directories. That is …

#cd /usr/local/share
/bin/sh: cd: /usr/local/share - Not a directory
#rm /usr/local/share
#cd /usr/local/share

Is this a known problem? I could be convinced to investigate further but I
think you can probably do it just as easily.

]{ristoph

Lance Roberts
Analyst Programmer
email: lance@econz.co.nz web: http://www.econz.co.nz
Ph: +64 9 361 1947 Fax: +64 9 378 9010
ECONZ (1971) Ltd. mail: PO Box 68-261, Newton, Auckland, New Zealand.

I’ve also seen this. I can turn the “fileized” directory back into a
directory, by going into /var/pkg/spill, and editting the appropriate
…fspkg_* thingamabob, and deleting the “fileized” directory; then slay
and restart package manager, and voila the directory is back (however, I
haven’t the slightest idea what happens to cause this - but it is almost
always related to installing a new package).

-----Original Message-----
From: Lance Roberts [mailto:lance@econz.co.nz]
Posted At: Sunday, April 08, 2001 9:22 PM
Posted To: os
Conversation: Problem with directories turning into files (Patch B)
Subject: Re: Problem with directories turning into files (Patch B)


I’ve seen this in the original unpatched release too.
But I had invisible files for a while (I could use them, but I couldn’t
see them
with ‘ls’ until I 'touch’ed them I think)

cheers
Lance

Jim Douglas wrote:

I have experienced a similar problem, but I think I was running Patch
A at
the time. I was adding stuff to the helpviewer directory tree and did
a
‘save as’ on a .toc file. At this point the ‘product’ sub-directory
turned
itself into a file. When I deleted the ‘product’ file, the
directory
(and associated sub-directories) reappeared . It was one of
those
occasions when you don’t really believe what you’re seeing, so I
convinced
myself I had done something really stupid and ignored it it. Looks
like
there’s a real nasty bug “out there”…

I am running Patch B.

Yesterday I downloaded Igor’s build of Apache. I untarred it and it
generated some errors about not being able to change permissions
(sorry I
don’t know what errors and I cannot risk other machines in the
test).

Anyway, Igor is a fan of the GNU file system way of placing files so
the
tar
tried to put directories under /usr/local/share (among others). I
already
had /usr/local/share but after I untarred Apache that directory
turned
into
a file. That is, I could no longer ‘cd’ into is and sh claimed it
was not
a
directory. ‘ls -al’ showed it was file also.

After a frustrating several hours I decided to delete these files
and
suddenly they became directories. That is …

#cd /usr/local/share
/bin/sh: cd: /usr/local/share - Not a directory
#rm /usr/local/share
#cd /usr/local/share

Is this a known problem? I could be convinced to investigate further
but I
think you can probably do it just as easily.

]{ristoph

Lance Roberts
Analyst Programmer
email: lance@econz.co.nz web: http://www.econz.co.nz
Ph: +64 9 361 1947 Fax: +64 9 378 9010
ECONZ (1971) Ltd. mail: PO Box 68-261, Newton, Auckland, New Zealand.