Skip to content

Commit

Permalink
WIP UID/GID remapping, more verbose remap errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephen-Seo committed Jan 6, 2025
1 parent 0d5cdfc commit ec38ffa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,7 @@ int simple_archiver_handle_map_user_or_group(
sizeof(uint32_t));
if (mapped_id) {
fprintf(stderr,
"ERROR: Mapping with key \"%" PRIu32 "\" already exists!\n",
"ERROR: Mapping with key ID \"%" PRIu32 "\" already exists!\n",
*first_id);
fprintf(stderr,
" Already mapped to ID \"%" PRIu32 "\".\n",
Expand All @@ -1096,7 +1096,7 @@ int simple_archiver_handle_map_user_or_group(
sizeof(uint32_t));
if (mapped_name) {
fprintf(stderr,
"ERROR: Mapping with key \"%" PRIu32 "\" already exists!\n",
"ERROR: Mapping with key ID \"%" PRIu32 "\" already exists!\n",
*first_id);
fprintf(stderr,
" Already mapped to name \"%s\".\n",
Expand Down Expand Up @@ -1126,7 +1126,7 @@ int simple_archiver_handle_map_user_or_group(
sizeof(uint32_t));
if (mapped_id) {
fprintf(stderr,
"ERROR: Mapping with key \"%" PRIu32 "\" already exists!\n",
"ERROR: Mapping with key ID \"%" PRIu32 "\" already exists!\n",
*first_id);
fprintf(stderr,
" Already mapped to ID \"%" PRIu32 "\".\n",
Expand All @@ -1138,7 +1138,7 @@ int simple_archiver_handle_map_user_or_group(
sizeof(uint32_t));
if (mapped_name) {
fprintf(stderr,
"ERROR: Mapping with key \"%" PRIu32 "\" already exists!\n",
"ERROR: Mapping with key ID \"%" PRIu32 "\" already exists!\n",
*first_id);
fprintf(stderr,
" Already mapped to name \"%s\".\n",
Expand Down Expand Up @@ -1168,7 +1168,7 @@ int simple_archiver_handle_map_user_or_group(
strlen(first_buf) + 1);
if (mapped_id) {
fprintf(stderr,
"ERROR: Mapping with key \"%s\" already exists!\n",
"ERROR: Mapping with key name \"%s\" already exists!\n",
first_buf);
fprintf(stderr,
" Already mapped to ID \"%" PRIu32 "\".\n",
Expand All @@ -1181,7 +1181,7 @@ int simple_archiver_handle_map_user_or_group(
+ 1);
if (mapped_name) {
fprintf(stderr,
"ERROR: Mapping with key \"%s\" already exists!\n",
"ERROR: Mapping with key name \"%s\" already exists!\n",
first_buf);
fprintf(stderr,
" Already mapped to name \"%s\".\n",
Expand Down Expand Up @@ -1211,7 +1211,7 @@ int simple_archiver_handle_map_user_or_group(
strlen(first_buf) + 1);
if (mapped_id) {
fprintf(stderr,
"ERROR: Mapping with key \"%s\" already exists!\n",
"ERROR: Mapping with key name \"%s\" already exists!\n",
first_buf);
fprintf(stderr,
" Already mapped to ID \"%" PRIu32 "\".\n",
Expand All @@ -1224,7 +1224,7 @@ int simple_archiver_handle_map_user_or_group(
+ 1);
if (mapped_name) {
fprintf(stderr,
"ERROR: Mapping with key \"%s\" already exists!\n",
"ERROR: Mapping with key name \"%s\" already exists!\n",
first_buf);
fprintf(stderr,
" Already mapped to name \"%s\".\n",
Expand Down

0 comments on commit ec38ffa

Please sign in to comment.