IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 2, 2007, 5:44:52 PM (19 years ago)
Author:
Paul Price
Message:

Need to resolve filenames, for Nebulous support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStats/src/ppStatsStandAlone.c

    r12993 r13181  
    3939    if (argc == 2) {
    4040        outName = argv[1];
     41        psString resolved = pmConfigConvertFilename(outName, config, true); // Resolved filename
     42
    4143        if (outName && strlen(outName) > 0) {
    4244            outFile = fopen(outName, "w");
    4345            if (!outFile) {
    44                 psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file %s\n", outName);
     46                psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file %s\n", resolved);
     47                psFree(resolved);
    4548                // XXX this could be a system or config error, but not a data error
    4649                status = PS_EXIT_CONFIG_ERROR;
     
    4851            }
    4952        } else {
    50             psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file.\n");
     53            psLogMsg("ppStats", PS_LOG_ERROR, "Unable to open output file %s.\n", resolved);
     54            psFree(resolved);
    5155            status = PS_EXIT_CONFIG_ERROR;
    5256            goto die;
    5357        }
     58        psFree(resolved);
    5459    }
    5560
Note: See TracChangeset for help on using the changeset viewer.