看板 DFBSD_kernel 關於我們 聯絡資訊
--bAmEntskrkuBymla Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 --bAmEntskrkuBymla Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCTqa+Skf3jVXOdl0RAqznAJ9+LQo7xktpnde+WbEncfcGt1oUkgCgny5z 5K46KgbM2wsqRwktdn2F5hg= =O+10 -----END PGP SIGNATURE----- --bAmEntskrkuBymla--