@@ -836,7 +836,7 @@ main(int argc, char *argv[])
836
836
++ all_extra_err_count ;
837
837
}
838
838
if (is_empty (u )) {
839
- werr (1 , __func__ , "%s: file is empty" , u );
839
+ werr (61 , __func__ , "%s: file is empty" , u );
840
840
++ all_extra_err_count ;
841
841
}
842
842
@@ -865,7 +865,7 @@ main(int argc, char *argv[])
865
865
++ all_extra_err_count ;
866
866
}
867
867
if (is_empty (u )) {
868
- werr (1 , __func__ , "%s: file is empty" , u );
868
+ werr (62 , __func__ , "%s: file is empty" , u );
869
869
++ all_extra_err_count ;
870
870
}
871
871
found_entry = true;
@@ -878,7 +878,7 @@ main(int argc, char *argv[])
878
878
++ all_extra_err_count ;
879
879
}
880
880
if (is_empty (u )) {
881
- werr (1 , __func__ , "%s: file is empty" , u );
881
+ werr (63 , __func__ , "%s: file is empty" , u );
882
882
++ all_extra_err_count ;
883
883
}
884
884
found_README = true;
@@ -891,7 +891,7 @@ main(int argc, char *argv[])
891
891
++ all_extra_err_count ;
892
892
}
893
893
if (is_empty (u )) {
894
- werr (1 , __func__ , "%s: file is empty" , u );
894
+ werr (64 , __func__ , "%s: file is empty" , u );
895
895
++ all_extra_err_count ;
896
896
}
897
897
found_index = true;
@@ -1020,7 +1020,7 @@ main(int argc, char *argv[])
1020
1020
for (c = 0 ; c < len ; ++ c ) {
1021
1021
u = dyn_array_value (found , char * , c );
1022
1022
if (u == NULL ) {
1023
- err (61 , __func__ , "NULL pointer in found files list" );
1023
+ err (65 , __func__ , "NULL pointer in found files list" );
1024
1024
not_reached ();
1025
1025
}
1026
1026
/*
@@ -1037,7 +1037,7 @@ main(int argc, char *argv[])
1037
1037
++ all_extra_err_count ;
1038
1038
}
1039
1039
if (is_empty (u )) {
1040
- werr (1 , __func__ , "%s: file is empty" , u );
1040
+ werr (66 , __func__ , "%s: file is empty" , u );
1041
1041
++ all_extra_err_count ;
1042
1042
}
1043
1043
found_auth = true;
@@ -1050,7 +1050,7 @@ main(int argc, char *argv[])
1050
1050
++ all_extra_err_count ;
1051
1051
}
1052
1052
if (is_empty (u )) {
1053
- werr (1 , __func__ , "%s: file is empty" , u );
1053
+ werr (67 , __func__ , "%s: file is empty" , u );
1054
1054
++ all_extra_err_count ;
1055
1055
}
1056
1056
found_info = true;
@@ -1063,7 +1063,7 @@ main(int argc, char *argv[])
1063
1063
++ all_extra_err_count ;
1064
1064
}
1065
1065
if (is_empty (u )) {
1066
- werr (1 , __func__ , "%s: file is empty" , u );
1066
+ werr (68 , __func__ , "%s: file is empty" , u );
1067
1067
++ all_extra_err_count ;
1068
1068
}
1069
1069
found_remarks = true;
@@ -1076,7 +1076,7 @@ main(int argc, char *argv[])
1076
1076
++ all_extra_err_count ;
1077
1077
}
1078
1078
if (is_empty (u )) {
1079
- werr (1 , __func__ , "%s: file is empty" , u );
1079
+ werr (69 , __func__ , "%s: file is empty" , u );
1080
1080
++ all_extra_err_count ;
1081
1081
}
1082
1082
found_Makefile = true;
@@ -1201,7 +1201,7 @@ main(int argc, char *argv[])
1201
1201
*/
1202
1202
errno = 0 ; /* pre-clear errno for errp() */
1203
1203
if (fchdir (cwd2 ) != 0 ) {
1204
- errp (62 , __func__ , "failed to change back to original directory" );
1204
+ errp (70 , __func__ , "failed to change back to original directory" );
1205
1205
not_reached ();
1206
1206
}
1207
1207
@@ -1212,12 +1212,12 @@ main(int argc, char *argv[])
1212
1212
auth_filename = ".auth.json" ;
1213
1213
auth_stream = open_dir_file (* submission_dir , auth_filename );
1214
1214
if (auth_stream == NULL ) { /* paranoia */
1215
- err (63 , __func__ , "auth_stream = open_dir_file(%s, %s) returned NULL" , * submission_dir , auth_filename );
1215
+ err (71 , __func__ , "auth_stream = open_dir_file(%s, %s) returned NULL" , * submission_dir , auth_filename );
1216
1216
not_reached ();
1217
1217
}
1218
1218
auth_path = calloc_path (* submission_dir , auth_filename );
1219
1219
if (auth_path == NULL ) {
1220
- err (64 , __func__ , "auth_path is NULL" );
1220
+ err (72 , __func__ , "auth_path is NULL" );
1221
1221
not_reached ();
1222
1222
}
1223
1223
}
@@ -1229,12 +1229,12 @@ main(int argc, char *argv[])
1229
1229
info_filename = ".info.json" ;
1230
1230
info_stream = open_dir_file (* submission_dir , info_filename );
1231
1231
if (info_stream == NULL ) { /* paranoia */
1232
- err (65 , __func__ , "info_stream = open_dir_file(%s, %s) returned NULL" , * submission_dir , info_filename );
1232
+ err (73 , __func__ , "info_stream = open_dir_file(%s, %s) returned NULL" , * submission_dir , info_filename );
1233
1233
not_reached ();
1234
1234
}
1235
1235
info_path = calloc_path (* submission_dir , info_filename );
1236
1236
if (info_path == NULL ) {
1237
- err (66 , __func__ , "info_path is NULL" );
1237
+ err (74 , __func__ , "info_path is NULL" );
1238
1238
not_reached ();
1239
1239
}
1240
1240
}
@@ -1279,27 +1279,27 @@ main(int argc, char *argv[])
1279
1279
* firewall on json_sem_check() results AND count errors for .auth.json
1280
1280
*/
1281
1281
if (auth_count_err == NULL ) {
1282
- err (67 , __func__ , "json_sem_check() left auth_count_err as NULL for .auth.json file: %s" , auth_path );
1282
+ err (75 , __func__ , "json_sem_check() left auth_count_err as NULL for .auth.json file: %s" , auth_path );
1283
1283
not_reached ();
1284
1284
}
1285
1285
if (dyn_array_tell (auth_count_err ) < 0 ) {
1286
- err (68 , __func__ , "dyn_array_tell(auth_count_err): %jd < 0 "
1286
+ err (76 , __func__ , "dyn_array_tell(auth_count_err): %jd < 0 "
1287
1287
"for .auth.json file: %s" , dyn_array_tell (auth_count_err ), auth_path );
1288
1288
not_reached ();
1289
1289
}
1290
1290
auth_count_err_count = (uintmax_t ) dyn_array_tell (auth_count_err );
1291
1291
if (auth_val_err == NULL ) {
1292
- err (69 , __func__ , "json_sem_check() left auth_val_err as NULL for .auth.json file: %s" , auth_path );
1292
+ err (77 , __func__ , "json_sem_check() left auth_val_err as NULL for .auth.json file: %s" , auth_path );
1293
1293
not_reached ();
1294
1294
}
1295
1295
if (dyn_array_tell (auth_val_err ) < 0 ) {
1296
- err (70 , __func__ , "dyn_array_tell(auth_val_err): %jd < 0 "
1296
+ err (78 , __func__ , "dyn_array_tell(auth_val_err): %jd < 0 "
1297
1297
"for .auth.json file: %s" , dyn_array_tell (auth_val_err ), auth_path );
1298
1298
not_reached ();
1299
1299
}
1300
1300
auth_val_err_count = (uintmax_t )dyn_array_tell (auth_val_err );
1301
1301
if (auth_all_err_count < auth_count_err_count + auth_val_err_count ) {
1302
- err (71 , __func__ , "auth_all_err_count: %ju < auth_count_err_count: %ju + auth_val_err_count: %ju "
1302
+ err (79 , __func__ , "auth_all_err_count: %ju < auth_count_err_count: %ju + auth_val_err_count: %ju "
1303
1303
"for .auth.json file: %s" ,
1304
1304
auth_all_err_count , auth_count_err_count , auth_val_err_count , auth_path );
1305
1305
not_reached ();
@@ -1323,29 +1323,29 @@ main(int argc, char *argv[])
1323
1323
* firewall on json_sem_check() results AND count errors for .info.json
1324
1324
*/
1325
1325
if (info_count_err == NULL ) {
1326
- err (72 , __func__ , "json_sem_check() left info_count_err as NULL for .info.json file: %s" , info_path );
1326
+ err (80 , __func__ , "json_sem_check() left info_count_err as NULL for .info.json file: %s" , info_path );
1327
1327
not_reached ();
1328
1328
}
1329
1329
if (dyn_array_tell (info_count_err ) < 0 ) {
1330
- err (73 , __func__ , "dyn_array_tell(info_count_err): %jd < 0 "
1330
+ err (81 , __func__ , "dyn_array_tell(info_count_err): %jd < 0 "
1331
1331
"for .info.json file: %s" ,
1332
1332
dyn_array_tell (info_count_err ), info_path );
1333
1333
not_reached ();
1334
1334
}
1335
1335
info_count_err_count = (uintmax_t )dyn_array_tell (info_count_err );
1336
1336
if (info_val_err == NULL ) {
1337
- err (74 , __func__ , "json_sem_check() left info_val_err as NULL for .info.json file: %s" , info_path );
1337
+ err (82 , __func__ , "json_sem_check() left info_val_err as NULL for .info.json file: %s" , info_path );
1338
1338
not_reached ();
1339
1339
}
1340
1340
if (dyn_array_tell (info_val_err ) < 0 ) {
1341
- err (75 , __func__ , "dyn_array_tell(info_val_err): %jd < 0 "
1341
+ err (83 , __func__ , "dyn_array_tell(info_val_err): %jd < 0 "
1342
1342
"for .info.json file: %ss" ,
1343
1343
dyn_array_tell (info_val_err ), info_path );
1344
1344
not_reached ();
1345
1345
}
1346
1346
info_val_err_count = (uintmax_t )dyn_array_tell (info_val_err );
1347
1347
if (info_all_err_count < info_count_err_count + info_val_err_count ) {
1348
- err (76 , __func__ , "info_all_err_count: %ju < info_count_err_count: %ju + info_val_err_count: %ju "
1348
+ err (84 , __func__ , "info_all_err_count: %ju < info_count_err_count: %ju + info_val_err_count: %ju "
1349
1349
"for .info.json file: %s" ,
1350
1350
info_all_err_count , info_count_err_count , info_val_err_count , info_path );
1351
1351
not_reached ();
@@ -1530,7 +1530,7 @@ main(int argc, char *argv[])
1530
1530
*/
1531
1531
errno = 0 ; /* pre-clear errno for errp() */
1532
1532
if (fchdir (cwd2 ) != 0 ) {
1533
- errp (77 , __func__ , "failed to change back to previous directory" );
1533
+ errp (85 , __func__ , "failed to change back to previous directory" );
1534
1534
not_reached ();
1535
1535
}
1536
1536
/*
@@ -1541,7 +1541,7 @@ main(int argc, char *argv[])
1541
1541
*/
1542
1542
errno = 0 ; /* pre-clear errno for errp */
1543
1543
if (close (cwd2 ) != 0 ) {
1544
- errp (78 , __func__ , "failed to close original directory FD" );
1544
+ errp (86 , __func__ , "failed to close original directory FD" );
1545
1545
not_reached ();
1546
1546
}
1547
1547
/*
0 commit comments