Skip to content

Commit c5a1bb0

Browse files
committed
Prefix octal numbers with 0
1 parent c81e1fb commit c5a1bb0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elisp/private/tools/system.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ static absl::Status CopyTreePosix(const int from_parent,
819819
if (!status.ok()) return status;
820820
} else {
821821
return absl::FailedPreconditionError(absl::StrFormat(
822-
"File %s with mode %04o cannot be copied", name, mode));
822+
"File %s with mode 0%03o cannot be copied", name, mode));
823823
}
824824
}
825825

elisp/private/tools/system.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ struct ArgFormatter final {
202202
}
203203

204204
void operator()(std::string* const absl_nonnull out, const Oct number) const {
205-
absl::StrAppendFormat(out, "%04o", number.value);
205+
absl::StrAppendFormat(out, "0%03o", number.value);
206206
}
207207
};
208208

0 commit comments

Comments
 (0)