Changeset 2779

Show
Ignore:
Timestamp:
08/29/08 05:45:53 (3 months ago)
Author:
dhozac
Message:

access dereferences symbolic links. Use lstat instead.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/vclone.c

    r2725 r2779  
    126126    PathInfo            dst_path = global_info.dst; 
    127127    char                dst_path_buf[ENSC_PI_APPSZ(dst_path, *src_path)]; 
     128    struct stat         dst_st; 
    128129 
    129130    if (S_ISDIR(st->st_mode)) 
     
    142143 
    143144    /* skip files that already exist */ 
    144     if (access(dst_path.d, F_OK)!=-1) { 
     145    if (lstat(dst_path.d, &dst_st)!=-1) { 
    145146      if (Global_getVerbosity() > 1) { 
    146147        WRITE_MSG(1, "  skipping '");