Changeset 871


Ignore:
Timestamp:
Oct 4, 2006, 10:56:43 AM (13 years ago)
Author:
bruno
Message:

TMPDIR used in common-env
Avoid mixing affectation and comparison on same line in mondo-rstr-tools.c
(Still looking for a Seg Fault in mondorestore in PXE mode)

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/mondorestore/mondo-rstr-tools.c

    r870 r871  
    10471047            /* We need to override prefix value in PXE mode as it's
    10481048             * already done in start-nfs */
    1049             if (tmp = getenv("imgname") == NULL) {
     1049            tmp = getenv("imgname");
     1050            if (tmp == NULL) {
    10501051                fatal_error("no imgname variable in environment");
    10511052            }
     
    11641165        /* We need to override values in PXE mode as it's
    11651166         * already done in start-nfs */
    1166         if (tmp = getenv("nfsmount") == NULL) {
     1167        tmp = getenv("nfsmount");
     1168        if (tmp == NULL) {
    11671169            fatal_error("no nfsmount variable in environment");
    11681170        }
    1169         if (tmp1 = getenv("dirimg") == NULL) {
     1171        tmp1 = getenv("dirimg");
     1172        if (tmp1 == NULL) {
    11701173            fatal_error("no dirimg variable in environment");
    11711174        }
  • branches/stable/tools/common-env

    r759 r871  
    1111mkdir -p ${TOPDIR}
    1212export TMPDIR=/tmp
    13 export TMP=`mktemp -d /tmp/mondobuild.XXXXXXXXXX`
     13export TMP=`mktemp -d $TMPDIR/mondobuild.XXXXXXXXXX`
    1414
    1515umask 022
Note: See TracChangeset for help on using the changeset viewer.