Deleted Added
full compact
101a102
> /* $FreeBSD: head/contrib/bzip2/bzip2.c 147666 2005-06-29 21:36:49Z simon $ */
314a316
> static int applySavedFileAttrToOutputFile ( int fd );
459a462,465
> int fd = fileno ( zStream );
> if (fd < 0) goto errhandler_io;
> ret = applySavedFileAttrToOutputFile ( fd );
> if (ret != 0) goto errhandler_io;
571a578,583
> if ( stream != stdout) {
> int fd = fileno ( stream );
> if (fd < 0) goto errhandler_io;
> ret = applySavedFileAttrToOutputFile ( fd );
> if (ret != 0) goto errhandler_io;
> }
1132c1144
< void applySavedMetaInfoToOutputFile ( Char *dstName )
---
> void applySavedTimeInfoToOutputFile ( Char *dstName )
1141,1143d1152
< retVal = chmod ( dstName, fileMetaInfo.st_mode );
< ERROR_IF_NOT_ZERO ( retVal );
<
1145a1155,1156
> # endif
> }
1147c1158,1168
< retVal = chown ( dstName, fileMetaInfo.st_uid, fileMetaInfo.st_gid );
---
> static
> int applySavedFileAttrToOutputFile ( int fd )
> {
> # if BZ_UNIX
> IntNative retVal;
>
> retVal = fchmod ( fd, fileMetaInfo.st_mode );
> if (retVal != 0)
> return retVal;
>
> (void) fchown ( fd, fileMetaInfo.st_uid, fileMetaInfo.st_gid );
1150a1172
> return 0;
1373c1395
< applySavedMetaInfoToOutputFile ( outName );
---
> applySavedTimeInfoToOutputFile ( outName );
1551c1573
< applySavedMetaInfoToOutputFile ( outName );
---
> applySavedTimeInfoToOutputFile ( outName );