home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / admin / 4778 < prev    next >
Encoding:
Text File  |  1992-08-30  |  1.7 KB  |  44 lines

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