diff options
author | Yann Collet <cyan@fb.com> | 2017-03-16 00:20:22 (GMT) |
---|---|---|
committer | Yann Collet <cyan@fb.com> | 2017-03-16 00:26:50 (GMT) |
commit | a33bf89c62b1573a604144adaa797d94d97cb990 (patch) | |
tree | cc1c0607fce35468929ac28fb14d9a290de23002 /programs/util.h | |
parent | e945a27f9c7081349fdcd292ea870bc240f667fd (diff) | |
download | lz4-a33bf89c62b1573a604144adaa797d94d97cb990.zip lz4-a33bf89c62b1573a604144adaa797d94d97cb990.tar.gz lz4-a33bf89c62b1573a604144adaa797d94d97cb990.tar.bz2 |
fix #332 : do not modify /dev/null permissions
Diffstat (limited to 'programs/util.h')
-rw-r--r-- | programs/util.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/programs/util.h b/programs/util.h index 044085f..5a69c55 100644 --- a/programs/util.h +++ b/programs/util.h @@ -187,8 +187,8 @@ UTIL_STATIC void UTIL_waitForNextTick(UTIL_time_t ticksPerSecond) * File functions ******************************************/ #if defined(_MSC_VER) - #define chmod _chmod - typedef struct __stat64 stat_t; + #define chmod _chmod + typedef struct __stat64 stat_t; #else typedef struct stat stat_t; #endif @@ -199,9 +199,9 @@ UTIL_STATIC int UTIL_setFileStat(const char *filename, stat_t *statbuf) int res = 0; struct utimbuf timebuf; - timebuf.actime = time(NULL); - timebuf.modtime = statbuf->st_mtime; - res += utime(filename, &timebuf); /* set access and modification times */ + timebuf.actime = time(NULL); + timebuf.modtime = statbuf->st_mtime; + res += utime(filename, &timebuf); /* set access and modification times */ #if !defined(_WIN32) res += chown(filename, statbuf->st_uid, statbuf->st_gid); /* Copy ownership */ |