Ignore:
Timestamp:
Nov 21, 2006, 1:42:17 AM (17 years ago)
Author:
Bruno Cornec
Message:

fix a difference with trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/src/common/libmondo-stream.c

    r948 r955  
    444444    int res = 0;
    445445    int retval = 0;
     446    char *fname = (char *)&res;                 /* Should NOT be NULL */
    446447
    447448// xattr
    448449    if (g_getfattr) {
    449         res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);
     450        res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr);
    450451        if (*pctrl_chr != BLK_START_EXAT_FILE) {
    451452            wrong_marker(BLK_START_EXAT_FILE, *pctrl_chr);
    452453        }
    453         if (!strstr(tmp_fname, "xattr")) {
     454        if (!strstr(fname, "xattr")) {
    454455            fatal_error("Wrong order, sunshine.");
    455456        }
     
    463464// acl
    464465    if (g_getfacl) {
    465         res = read_header_block_from_stream(ptmp_size, tmp_fname, pctrl_chr);
    466         if (!strstr(tmp_fname, "acl")) {
     466        res = read_header_block_from_stream(ptmp_size, fname, pctrl_chr);
     467        if (!strstr(fname, "acl")) {
    467468            fatal_error("Wrong order, sunshine.");
    468469        }
     
    493494    int res = 0;
    494495    if (g_getfattr) {
    495 // xattr
     496    // xattr
    496497        write_header_block_to_stream(length_of_file(xattr_fname), xattr_fname,
    497498                             BLK_START_EXTENDED_ATTRIBUTES);
     
    502503    }
    503504    if (g_getfacl) {
    504 // acl
     505    // acl
    505506        write_header_block_to_stream(length_of_file(acl_fname), acl_fname,
    506507                             BLK_START_EXAT_FILE);
Note: See TracChangeset for help on using the changeset viewer.