Ignore:
Timestamp:
Sep 24, 2009, 11:48:15 AM (15 years ago)
Author:
Bruno Cornec
Message:
  • star only supports ACL when used with exustar mode. Fix #356.
  • Modify getfattr call to have all extended attributes, including non user ones. (patch from Kevin Ritzenthaler Kevin.Ritzenthaler_at_hp.com) and fix #357

(Backport from 2.2.9)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/libmondo-fork.c

    r2405 r2420  
    3838    /*@ buffers ***************************************************** */
    3939    char *result = NULL;
    40     char *p = NULL;
     40    char *tmpf = NULL;
    4141
    4242    /*@ pointers **************************************************** */
     
    4747    assert_string_is_neither_NULL_nor_zerolength(call);
    4848
     49    mr_asprintf(tmpf, "%s/cpgll.out", bkpinfo->scratchdir);
     50    mr_strcat(call, " > %s", tmpf);
    4951    log_msg(4, "Calling command: %s", call);
    5052    /* By default return an empty string in any case */
    5153    mr_asprintf(result, "");
    5254
    53     /* popen seems to always return an empty line after the interesting last line result */
    54     if ((fin = popen(call, "r"))) {
     55    system(call);
     56    if ((fin = fopen(ftmp, "r"))) {
    5557        while (!feof(fin)) {
    56             mr_getline(p, fin);
    57             log_msg(9, "p: %s", p);
    58             if ((p != NULL) && (strlen(p) > 1)) {
    59                 mr_free(result);
    60                 mr_asprintf(result, "%s", p);
    61                 log_msg(9, "Result: %s", result);
    62             }
    63             mr_free(p);
    64         }
    65         log_msg(4, "Result: %s", result);
     58            mr_getline(result, fin);
     59            log_msg(9, "Loop result: %s", result);
     60        }
     61        log_msg(4, "Final Result: %s", result);
    6662        mr_strip_spaces(result);
    6763        paranoid_pclose(fin);
     
    6965        log_OS_error("Unable to popen call");
    7066    }
     67    mr_free(ftmp)
    7168    log_msg(4, "Returns: %s", result);
    7269    return(result);
Note: See TracChangeset for help on using the changeset viewer.