Go to file
bouyer 8d7cb08335 Main change: add a cleanup_dist() function in util.c which will do the needed
cleanups before extracting a set. Should'nt do anything for an install,
as the filesystem shouldn't contain files that need to be removed.
cleanup_dist() is called before extract_file() for each set (the set name
is passed as parameter). It will open a file /dist/<set name>_obsolete
if it exists. This file should contain a list of files (absolutes
pathnames) that needs to be removed. cleanup_dist() will lstat() each file
to determine if it's there and if it's a directory or not.
It will then unlink() entries that are not directories and then rmdir()
directories. If a directory is not empty (it should now if the list of files
is correct) it will be renamed to <directory.old> and the user will be warned.

Other changes:
- move prototype of target_prefix() in defs.h, don't maintain a copy
  of it in each file.
- in install.c, after MSG_disksetupdone, do a wclear(stdscr) (display was
  clobbered after it).
- kill MSG_openmsgbuf, it's not used anywhere
- after MSG_disksetupdone in upgrade, don't call MENU_ok, do it the
  same way as in install.
- add wclear(stdscr);/wrefresh(stdscr); before calling MENU_distset (another
  display problem ...)
- While I'm there, move ask_verbose_dist() before MENU_distmedium. This way,
  if all go well the user can go away one ftp starts and come back once
  sets are extracted.
1999-04-13 20:17:47 +00:00
bin Correct a rather obvious typo (once Tor Egge pointed it out to me) 1999-04-06 21:05:27 +00:00
distrib Main change: add a cleanup_dist() function in util.c which will do the needed 1999-04-13 20:17:47 +00:00
etc Configure wscons much earlier so that a virtual console can e.g. be 1999-04-13 07:40:53 +00:00
games change: 1999-04-06 04:54:19 +00:00
gnu Quote "AS IS" as in the majority of Carnegy Mellon notices. 1999-04-12 20:38:17 +00:00
include move __getcwd prototypes to libc-private header file. 1999-03-26 22:23:57 +00:00
lib Remove blank lines (causing uglified nroff output), and fix a typo. 1999-04-13 16:54:26 +00:00
libexec Allow reading SunOS/4.1.1 object files. Fixes pr/7363 1999-04-12 00:52:44 +00:00
regress move __getcwd prototypes to libc-private header file. 1999-03-26 22:23:57 +00:00
sbin Update for sparc64. 1999-04-09 16:01:34 +00:00
share Add the "gateway" line to the sample /etc/bootparams entry. 1999-04-11 23:15:26 +00:00
sys Removed pending write of fully-functional MI driver. 1999-04-13 19:06:54 +00:00
usr.bin try using normal read/write is mmap() fails. tell the VM system we are going to be doing sequential access via madvise(). 1999-04-13 07:21:45 +00:00
usr.sbin Fix a printf format warning on the Alpha. 1999-04-13 00:16:24 +00:00
Makefile Improve documentation. 1999-04-01 02:49:12 +00:00