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

pgi default configuration WIPES OUT whole filesystems without asking!!!

Package: pgi
Version: 0.9.6
Severity: critical
Justification: causes serious data loss


I wanted to create an ISO image using pgi-build

I read some of the guide, gave a look at the options, and then said
'well lets try it and see what come out'

 so I typed

TMPDIR=/media/tmp/ nice pgi-build -t /media/tmp/ -o /media/ --not-official --include-nonfree --build-mirror=/debian/testing/ --debian-version=testing

were /media is (ACTUALLY: WAS) a big partition were I keep some nice data
(of which  I had NO BACKUP!)

the disk spinned for a while and then pgi-build told me
 rm: cannot remove directory `/media'
and stopped, and my nice partition was COMPLETELT WIPED OUT

after that , I inspected (with much more attention)
and found that in  /etc/pgi/*/options  there is
 # boolean indicating whether to clean the temporary directories by default
 : ${CLEAN:=1}
 export CLEAN

and in /usr/bin/pgi-build there is
  -o|--outdir) OUT="$2"; shift ;;
if [ $CLEAN -eq 1 ]; then
    for DIR in $TDIR $OUT; do
        if [ -d $DIR ]; then
            $SU_CMD rm -rf $DIR

I think that it is completely crazy to ship a program that by defaults wipes
out the OUTOUT dir

I also think that it is not right, by default,
 to wipe out the temporary dir

what if I had typed in 

 pgi-build -o ${HOME}  


you MUST correct this bug immediatly!!!!!!


-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux tonelli.sns.it 2.4.17 #1 SMP ven mar 15 17:35:24 CET 2002 i686
Locale: LANG=it_IT, LC_CTYPE=it_IT

Versions of packages pgi depends on:
ii  ash                     0.3.8-36         NetBSD /bin/sh
ii  bind9-host              1:9.2.0-6        Version of 'host' bundled with BIN
ii  binutils          The GNU assembler, linker and bina
ii  build-essential         6                Informational list of build-essent
ii  busybox-source-0.60.0   0.60.0-6         BusyBox source code
ii  curl                    7.9.5-1          Get a file from an FTP, GOPHER, HT
ii  debootstrap             0.1.17           Bootstrap a basic Debian system
ii  dialog                  0.9a-20020309a-1 Displays user-friendly dialog boxe
ii  discover                1.1-4            hardware identification system
ii  discover-data           1.2002.03.19     hardware lists for libdiscover1
ii  dnsutils                1:9.2.0-6        Clients provided with BIND
ii  dosfstools              2.8-1            Utilities to create and check MS-D
ii  dpkg                    1.9.20           Package maintenance system for Deb
ii  etherconf               1.10             debconf interface to Ethernet conf
ii  fdutils                 5.3-7            Linux floppy utilities
ii  file                    3.37-3.1         Determines file type using "magic"
ii  gawk                    1:3.1.0-3        GNU awk, a pattern scanning and pr
ii  gtk-engines-raleigh     0.12-4           GTK+ 2.0-like theme for GTK+
ii  less                    374-1            A file pager program, similar to m
ii  libc6-pic               2.2.5-4          GNU C Library: PIC archive library
ii  libc6-pic [glibc-pic]   2.2.5-4          GNU C Library: PIC archive library
ii  libdigest-md5-perl      2.13-2           MD5 Message Digest for Perl
ii  lynx                 Text-mode WWW Browser
ii  makedev                 2.3.1-58         Creates device files in /dev.
ii  mdetect                 0.5.1            mouse device autodetection tool
ii  mkisofs                 4:1.10-2.4       Creates ISO-9660 CD-ROM filesystem
ii  modutils                2.4.15-1         Linux module utilities.
ii  mtools                  3.9.8-7          Tools for manipulating MSDOS files
ii  net-tools               1.60-4           The NET-3 networking toolkit
ii  netcat                  1.10-21          TCP/IP swiss army knife
ii  netkit-ping             0.10-9           The ping utility from netkit
ii  nvi                     1.79-20          4.4BSD re-implementation of vi.
ii  parted                  1.4.24-3         The GNU Parted disk partition resi
ii  patch                   2.5.4-10         Apply a diff file to an original
ii  pciutils                1:2.1.9-4        Linux PCI Utilities (for 2.[1234].
ii  procps                  1:2.0.7-8        The /proc file system utilities.
ii  psmisc                  20.2-2.1         Utilities that use the proc filesy
ii  python-glade            0.6.8-17         Put a bit of python code behind in
ii  python-gnome            1.4.1-17         PyGNOME -- Python bindings for GNO
ii  python-parted           0.10-1           Python bindings for GNU Parted
ii  python2.1               2.1.2-3          An interactive object-oriented scr
ii  rcs                     5.7-13           The GNU Revision Control System
ii  read-edid               1.4.1-1          hardware information-gathering too
ii  rxvt                    1:2.6.4-5        VT102 terminal emulator for the X 
ii  strace                  4.4-1.2          A system call tracer.
ii  syslinux                1.66-1           Bootloader for Linux/i386 using MS
ii  traceroute              1.4a12-9         Traces the route taken by packets 
ii  udhcpc                  0.9.6-3          very small DHCP client
ii  wget                    1.8.1-5          retrieves files from the web
ii  xbase-clients           4.1.0-14         miscellaneous X clients
ii  xfonts-100dpi           4.1.0-14         100 dpi fonts for X
ii  xfonts-base             4.1.0-14         standard fonts for X
ii  xserver-xfree86         4.1.0-14         the XFree86 X server
ii  xterm                   4.1.0-14         X terminal emulator

Andrea Mennucc
 "E' un mondo difficile. Che vita intensa!" (Renato Carotone)

To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: