DragonFly BSD
DragonFly kernel List (threaded) for 2005-04
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

rm/unlink and `how to find out who i am'


From: "Devon H. O'Dell " <dodell@xxxxxxxxxxxxxxx>
Date: Sat, 2 Apr 2005 16:05:50 +0200
Mail-followup-to: kernel@crater.dragonflybsd.org

Hey,

I dunno if there are other files that are hard linked together
and how these are all testing what name they were called by, but
Liam pointed out the case of rm(1) to me today and asked why it
was going about that like it was.

I also don't get it.

To me, it seems that something like:

if (strncmp("unlink", basename(*argv)) == 0)

would make more sense than how it's doing it now (with a
temporary pointer to const char and strrchr). I know that
basename(3) isn't POSIX -- is this an issue?

--Devon

Attachment: pgp00000.pgp
Description: PGP signature



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]