[lkml]   [1998]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Directory name problem...
On Tue, 27 Oct 1998, Brandon S. Allbery KF8NH wrote:

>| That still deletes legitimate files named core that are not core
>| files. Use "file" to determine if it is a corefile.
>Personally, I think anyone who names a non-coredump file `core' is asking
>for it.

Personally, I think anyone creating a system administration level
shell script that deletes all files and/or directories named
"core" is asking for it.

Naming a file "core" may not be the smartest choice of a filename
on systems that have complete idiots as sysadmin's, but it is
a perfectly legitimate filename/dirname, and the linux source
tree illustrates this point, as do other programs/files.

One other point nobody has mentioned is that on many systems,
non-unix filesystems are mounted such as msdos/vfat, floppies,
ntfs, hpfs, nfs, etc...

I just did a filefind, and found a couple dirs named "core" in my
msdos partitions. This stuff is NOT backed up, and would be a
pain to locate again.

Point being that opinions on the naming of files as "core" make
no useful contribution to the problem that people DO infact use
files and dirs with such a name, and may not know anything at ALL
about Unix, or corefiles. User's might be running a Win95 system
served by a Linux Samba server, and decide to name a document
"core" for some project that is being worked on or something. In
this respect, an innocent user is CERTAINLY not "asking for it".
Not in any way. It is the stupid sysadmin who is asking for it.
I'll put my money on it that it would be the sysadmin who loses
his job, rather than the person naming the file "core".

What's more is that someone may have a *legitimate* "core" file
that is in fact a real core file, that they ARE USING, or ARE
WANTING TO ANALYZE with gdb. This could for example be the core
file of a program that cores once every 18 days or so...
Certainly the person isn't going to be very pleased to wait
another 18 days to get another corefile to examine. How then do
you propose to remove THESE core files? Someone has proposed
checking the atime on the file. What if joe programmer is on a
month's holidays? A lot of other what-if's come up too.

The proper solution is to implement the script properly, and
tweak it to a particular site's preferences, perhaps ignoring
/home when scanning.

You certainly cannot expect every computer user to not use "core"
as a filename to make up for the short-sightedness of a retarded
sysadmin. And, Linus/Alan/Donald/whoever was responsible for
naming the directory "core" are certainly not "asking for it".

That is my $0.02

Mike A. Harris - Computer Consultant - Linux advocate

Linux software galore:

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:45    [W:0.069 / U:0.684 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site