mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
955274: DMAPI qa test fixes
Merge of master-melb:xfs-cmds:27241a by kenmcd. avoid negative number LONG_MAX + 1
This commit is contained in:
@@ -33,8 +33,8 @@
|
||||
#include <getopt.h>
|
||||
|
||||
#define NUMLEN 16 /* arbitrary max len of input size */
|
||||
#define MAX_K (((u_int)LONG_MAX + 1) / 1024)
|
||||
#define MAX_M (((u_int)LONG_MAX + 1) / (1024*1024))
|
||||
#define MAX_K (((u_int)LONG_MAX) / 1024)
|
||||
#define MAX_M (((u_int)LONG_MAX) / (1024*1024))
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -261,7 +261,7 @@ spawn_kid(
|
||||
WORKER_BEE, WORKER_BEE, action, sidbuf,
|
||||
tokenbuf);
|
||||
}
|
||||
execlp(WORKER_BEE, WORKER_BEE, action, "-s", sidbuf,
|
||||
execlp("./"WORKER_BEE, WORKER_BEE, action, "-s", sidbuf,
|
||||
"-t", tokenbuf, NULL);
|
||||
errno_msg("execlp of worker bee failed");
|
||||
(void)dm_respond_event(sid, token, DM_RESP_ABORT,
|
||||
|
||||
Reference in New Issue
Block a user