Changeset 568

Show
Ignore:
Timestamp:
03/08/07 17:40:27 (2 years ago)
Author:
hollow
Message:

fix check for tagxid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vcd/methods/vx/vx_create.c

    r567 r568  
    8585static int force = 0; 
    8686static int copy  = 0; 
     87static int has_tagxid = 0; 
    8788 
    8889static xmlrpc_env *global_env = NULL; 
     
    201202        } 
    202203 
    203         if (do_chxid) { 
     204        if (do_chxid && has_tagxid) { 
    204205                /* we can rely upon vdir and fpath being valid, so we 
    205206                 * don't use str_path_concat to get rid of mem_alloc, but we 
     
    244245                method_return_sys_fault(env, "ix_attr_get"); 
    245246 
    246         if (!(attr.mask & IATTR_TAG)
    247                 copy = 1; 
     247        if (attr.mask & IATTR_TAG
     248                has_tagxid = 1; 
    248249 
    249250        /* check template dir */