Opened 11 years ago

Closed 11 years ago

#261 closed defect (fixed)

unable to create global tmp directory when nss is loaded in OES2

Reported by: sprobst Owned by: bruno
Priority: normal Milestone: 2.2.7
Component: mondo Version: 2.2.6
Severity: normal Keywords: nss (Volumes/Pools)
Cc:

Description

Running mondoarchive under OES2 with nss-Volumes/Pools? mounted results in:

        [TH=26569] libmondo-tools.c->setup_tmpdir#830: Failed to create global tmp directory /opt/novell/nss/mnt/.pools/MF/mondo.tmp.ku05CA for Mondo.

The appropiate patch is (just ignoring nsspool und nssvol-Type):

*** mondo-2.2.6.old/src/common/libmondo-devices.c       Sat May 31 19:50:37 2008
--- mondo-2.2.6/src/common/libmondo-devices.c   Tue Jun 17 09:28:33 2008
***************
*** 2381,2391 ****
  #ifdef __FreeBSD__
        strcpy(tmp,
                   call_program_and_get_last_line_of_output
!                  ("LANGUAGE=C df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));
  #else
        strcpy(tmp,
                   call_program_and_get_last_line_of_output
!                  ("LANGUAGE=C df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs | sed 's/                  /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));
  #endif

        if (tmp[0] != '/') {
--- 2381,2391 ----
  #ifdef __FreeBSD__
        strcpy(tmp,
                   call_program_and_get_last_line_of_output
!                  ("LANGUAGE=C df -m -P -t nonfs,msdosfs,ntfs,smbfs,smb,cifs,afs,gfs,ocfs,ocfs2,mvfs,nsspool,nssvol | tr -s '\t' ' ' | grep -vE \"none|Filesystem\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));
  #else
        strcpy(tmp,
                   call_program_and_get_last_line_of_output
!                  ("LANGUAGE=C df -m -P -x nfs -x vfat -x ntfs -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs -x nsspool -x nssvol | sed 's/                  /devdev/' | tr -s '\t' ' ' | grep -vE \"none|Filesystem|/dev/shm\" | awk '{printf \"%s %s\\n\", $4, $6;}' | sort -n | tail -n1 | awk '{print $NF;}'"));
  #endif

        if (tmp[0] != '/') {

Change History (1)

comment:1 Changed 11 years ago by bruno

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in rev [1988]

Note: See TracTickets for help on using tickets.