Ignore:
Timestamp:
Dec 22, 2010, 7:06:00 AM (11 years ago)
Author:
charles
Message:

(2.0x) backport r11574 from #3844 "Error popup when adding a relative path"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/utils.c

    r11474 r11575  
    15031503}
    15041504
     1505tr_bool
     1506tr_is_same_file( const char * filename1, const char * filename2 )
     1507{
     1508    struct stat sb1, sb2;
     1509
     1510    return !stat( filename1, &sb1 )
     1511        && !stat( filename2, &sb2 )
     1512        && ( sb1.st_dev == sb2.st_dev )
     1513        && ( sb1.st_ino == sb2.st_ino );
     1514}
     1515
    15051516/***
    15061517****
Note: See TracChangeset for help on using the changeset viewer.