Easy: Print Mode as Octal in chmod() Trace
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ int UTIL_isRegularFileStat(const stat_t* statbuf)
|
|||||||
int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions)
|
int UTIL_chmod(char const* filename, const stat_t* statbuf, mode_t permissions)
|
||||||
{
|
{
|
||||||
stat_t localStatBuf;
|
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 (statbuf == NULL) {
|
||||||
if (!UTIL_stat(filename, &localStatBuf)) {
|
if (!UTIL_stat(filename, &localStatBuf)) {
|
||||||
UTIL_TRACE_RET(0);
|
UTIL_TRACE_RET(0);
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Trace:FileStat: > UTIL_stat(file.zst)
|
|||||||
Trace:FileStat: < 1
|
Trace:FileStat: < 1
|
||||||
Trace:FileStat: > UTIL_utime(file.zst)
|
Trace:FileStat: > UTIL_utime(file.zst)
|
||||||
Trace:FileStat: < 0
|
Trace:FileStat: < 0
|
||||||
Trace:FileStat: > UTIL_chmod(file.zst, 418)
|
Trace:FileStat: > UTIL_chmod(file.zst, 0642)
|
||||||
Trace:FileStat: > chmod
|
Trace:FileStat: > chmod
|
||||||
Trace:FileStat: < 0
|
Trace:FileStat: < 0
|
||||||
Trace:FileStat: < 0
|
Trace:FileStat: < 0
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Trace:FileStat: > UTIL_stat(file)
|
|||||||
Trace:FileStat: < 1
|
Trace:FileStat: < 1
|
||||||
Trace:FileStat: > UTIL_utime(file)
|
Trace:FileStat: > UTIL_utime(file)
|
||||||
Trace:FileStat: < 0
|
Trace:FileStat: < 0
|
||||||
Trace:FileStat: > UTIL_chmod(file, 418)
|
Trace:FileStat: > UTIL_chmod(file, 0642)
|
||||||
Trace:FileStat: > chmod
|
Trace:FileStat: > chmod
|
||||||
Trace:FileStat: < 0
|
Trace:FileStat: < 0
|
||||||
Trace:FileStat: < 0
|
Trace:FileStat: < 0
|
||||||
|
|||||||
Reference in New Issue
Block a user