﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
375	mondoarchive / mondorestore will segfault if the partition decidied by sensibly_set_tmpdir_and_scratchdir() is read-only	cylau	Bruno Cornec	"mondo version = mondo-2.2.9.1 
In src/common/libmondo-devices.c (Line 2772)
In void sensibly_set_tmpdir_and_scratchdir() :

The output of call_program_and_get_last_line_of_output

LANGUAGE=C df -m -P -x nfs -x nfs4 -x fuse.sshfs -x fuse -x vfat -x ntfs -x ntfs-3g -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs -x nsspool -x nssvol -x iso9660 | grep -vE ""none|Filesystem|/dev/shm"" | awk '{printf ""%s %s\n"", $4, $6;}' | sort -nr | awk '{print $NF;}'

This command line does not avoid the partition which is mounted as read only, and it will make segfault in later lines.

For example, 
If /local is the largest partition with most available spaces, but it is mounted as read only, it cannot create the scratch.

Attached the proposed patch file and spec file for RHEL5:

"	defect	closed	highest	2.2.9.2	mondo	2.2.9.1	blocker	fixed		
