Changeset 10 for trunk/src/sh_hash.c
- Timestamp:
- Jan 1, 2006, 11:58:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_hash.c
r8 r10 338 338 { 339 339 file_type * theFile; 340 #if defined(__linux__) 340 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 341 341 int i = 16; 342 342 #endif … … 348 348 sl_strlcpy(theFile->c_mode, p->theFile.c_mode, 11); 349 349 theFile->mode = p->theFile.mode; 350 #if defined(__linux__) 350 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 351 351 sl_strlcpy(theFile->c_attributes, p->theFile.c_attributes, i /* 16 */); 352 352 theFile->attributes = p->theFile.attributes; … … 889 889 swap_32(&(ft.owner)); 890 890 swap_32(&(ft.group)); 891 #if defined(__linux__) 891 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 892 892 swap_32(&(ft.attributes)); 893 893 #endif … … 962 962 sh_do_decode(fullpath, sl_strlen(fullpath)); 963 963 964 #if defined(__linux__) 964 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 965 965 sh_do_decode(ft.c_attributes, sl_strlen(ft.c_attributes)); 966 966 #endif … … 1322 1322 char * timep; 1323 1323 1324 #if !defined(__linux__) 1324 #if !defined(__linux__) && !defined(HAVE_STAT_FLAGS) 1325 1325 int i; 1326 1326 #endif … … 1524 1524 sl_strlcpy(p.checksum, fileHash, KEY_LEN+1); 1525 1525 } 1526 #if defined(__linux__) 1526 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 1527 1527 sl_strlcpy(p.c_attributes, buf->c_attributes, 13); 1528 1528 #else … … 1540 1540 #endif 1541 1541 1542 #if defined(__linux__) 1542 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 1543 1543 p.attributes = (UINT32) buf->attributes; 1544 1544 #else … … 1986 1986 sl_strlcpy(p.c_owner, buf->c_owner, USER_MAX+1); 1987 1987 sl_strlcpy(p.checksum, fileHash, KEY_LEN+1); 1988 #if defined(__linux__) 1988 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 1989 1989 sl_strlcpy(p.c_attributes, buf->c_attributes, 13); 1990 1990 #endif 1991 1991 1992 #if defined(__linux__) 1992 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 1993 1993 p.attributes = (UINT32) buf->attributes; 1994 1994 #endif … … 2096 2096 2097 2097 2098 #if defined(__linux__) 2098 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 2099 2099 if (is_new) 2100 2100 format = _("mode_new=\"%s\" attr_new=\"%s\" imode_new=\"%ld\" iattr_new=\"%ld\" "); … … 2233 2233 2234 2234 2235 #if defined(__linux__) 2235 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 2236 2236 if (is_new) 2237 2237 format = _("mode_new=<%s>, attr_new=<%s>, imode_new=<%ld>, iattr_new=<%ld>, "); … … 2550 2550 2551 2551 if ( ( (theFile->mode != p->theFile.mode) 2552 #if defined(__linux__) 2552 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 2553 2553 || (theFile->attributes != p->theFile.attributes) 2554 2554 #endif … … 2660 2660 ) 2661 2661 { 2662 #if defined(__linux__) 2662 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 2663 2663 sl_snprintf(tmp, SH_BUFSIZE, 2664 2664 #ifdef SH_USE_XML … … 2700 2700 sl_strlcpy(p->theFile.c_mode, theFile->c_mode, 11); 2701 2701 p->theFile.mode = theFile->mode; 2702 #if defined(__linux__) 2702 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 2703 2703 sl_strlcpy(p->theFile.c_attributes,theFile->c_attributes,16); 2704 2704 p->theFile.attributes = theFile->attributes; … … 2956 2956 sl_strlcpy(theFile->c_mode, p->theFile.c_mode, 11); 2957 2957 theFile->mode = p->theFile.mode; 2958 #if defined(__linux__) 2958 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 2959 2959 sl_strlcpy(theFile->c_attributes, p->theFile.c_attributes, 16); 2960 2960 theFile->attributes = p->theFile.attributes; … … 3000 3000 sl_strlcpy(p->theFile.c_mode, theFile->c_mode, 11); 3001 3001 p->theFile.mode = theFile->mode; 3002 #if defined(__linux__) 3002 #if defined(__linux__) || defined(HAVE_STAT_FLAGS) 3003 3003 sl_strlcpy(p->theFile.c_attributes, theFile->c_attributes, 16); 3004 3004 p->theFile.attributes = theFile->attributes;
Note:
See TracChangeset
for help on using the changeset viewer.