mirror of
https://github.com/facebook/zstd.git
synced 2025-03-07 01:10:04 +02:00
Easy: Print Mode as Octal in chmod()
Trace
This commit is contained in:
parent
0d2d460223
commit
7a8c8f3fe7
@ -185,7 +185,7 @@ int UTIL_isRegularFileStat(const stat_t* statbuf)
|
||||
int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions)
|
||||
{
|
||||
stat_t localStatBuf;
|
||||
UTIL_TRACE_CALL("UTIL_chmod(%s, %u)", filename, (unsigned)permissions);
|
||||
UTIL_TRACE_CALL("UTIL_chmod(%s, %#4o)", filename, (unsigned)permissions);
|
||||
if (statbuf == NULL) {
|
||||
if (!UTIL_stat(filename, &localStatBuf)) {
|
||||
UTIL_TRACE_RET(0);
|
||||
|
@ -35,7 +35,7 @@ Trace:FileStat: > UTIL_stat(file.zst)
|
||||
Trace:FileStat: < 1
|
||||
Trace:FileStat: > UTIL_utime(file.zst)
|
||||
Trace:FileStat: < 0
|
||||
Trace:FileStat: > UTIL_chmod(file.zst, 418)
|
||||
Trace:FileStat: > UTIL_chmod(file.zst, 0642)
|
||||
Trace:FileStat: > chmod
|
||||
Trace:FileStat: < 0
|
||||
Trace:FileStat: < 0
|
||||
|
@ -31,7 +31,7 @@ Trace:FileStat: > UTIL_stat(file)
|
||||
Trace:FileStat: < 1
|
||||
Trace:FileStat: > UTIL_utime(file)
|
||||
Trace:FileStat: < 0
|
||||
Trace:FileStat: > UTIL_chmod(file, 418)
|
||||
Trace:FileStat: > UTIL_chmod(file, 0642)
|
||||
Trace:FileStat: > chmod
|
||||
Trace:FileStat: < 0
|
||||
Trace:FileStat: < 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user