home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.admin:4778 comp.unix.wizards:3744
- Path: sparky!uunet!ukma!wupost!cs.utexas.edu!chinacat!rpp386!jfh
- From: jfh@rpp386.lonestar.org (John F. Haugh II)
- Newsgroups: comp.unix.admin,comp.unix.wizards
- Subject: Re: How do I remove a directory with no parent?
- Message-ID: <21428@rpp386.lonestar.org>
- Date: 30 Aug 92 15:33:18 GMT
- References: <1992Aug29.151128.3376@magnus.acs.ohio-state.edu>
- Reply-To: jfh@rpp386.cactus.org (John F. Haugh II)
- Organization: River Parishes Programming, Austin, Republic of Texas
- Lines: 31
-
- In article <1992Aug29.151128.3376@magnus.acs.ohio-state.edu> bjones@magnus.acs.ohio-state.edu (William A Jones) writes:
- >I just recently installed smail v3.1.25 on my system (i486 running linux 0.97)
- >and during the installation process, the directory /usr/local/lib/smail/methods
- >was created. However, there is absolutely nothing in the directory -- no
- >., no .., no nothing. fsck kindly points this out but hasn't done anything
- >to fix it. rmdir, rm -rf, rm -d all don't work. I tried removing the entire
- >directory tree doing an "rm -rf /usr/local/lib/smail" but that doesn't work.
-
- If you have /etc/unlink, use that. If you don't have /etc/unlink, compile
- this small program as /etc/unlink -
- --
- #include <stdio.h>
- #include <errno.h>
-
- main (int argc, char **argv)
- {
- if (argc != 2) {
- fprintf (stderr, "usage: unlink file\n");
- exit (1);
- }
- if (unlink (argv[1])) {
- perror (argv[1]);
- exit (errno);
- }
- exit (0);
- }
- --
- John F. Haugh II | "The US Government has the Midas Muffler
- Ma Bell: (512) 251-2151 | touch: everything they touch turns to
- UUCP: ...!cs.utexas.edu!rpp386!jfh | shit."
- Domain: jfh@rpp386.cactus.org | -- Jay Maynard
-