Fix the err() arguments for a nfssvc(8) failure.
argv has been incremented during argument handling, so elements of the array are no longer valid. Change the err() arguments so only the first string pointer in argv is used. Found during code inspection.
This commit is contained in:
parent
41df1b5b47
commit
928ab9c625
@ -295,7 +295,7 @@ main(int argc, char *argv[])
|
||||
pnfsdarg.mdspath = *argv;
|
||||
ret = nfssvc(NFSSVC_PNFSDS, &pnfsdarg);
|
||||
if (ret < 0 && errno != EEXIST)
|
||||
err(1, "Copymr failed args %s, %s", argv[1], argv[2]);
|
||||
err(1, "Copymr failed for file %s", *argv);
|
||||
exit(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user