Merge pull request #257 from PlushBeaver/diff-path

Remove hardcoded path to diff binary
This commit is contained in:
Olof Hagsand 2021-08-15 17:08:44 +02:00 committed by GitHub
commit bf14df3c40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -701,7 +701,7 @@ compare_xmls(cxobj *xc1,
clicon_err(OE_CFG, errno, "cbuf_new"); clicon_err(OE_CFG, errno, "cbuf_new");
goto done; goto done;
} }
cprintf(cb, "/usr/bin/diff -dU 1 %s %s | grep -v @@ | sed 1,2d", cprintf(cb, "diff -dU 1 %s %s | grep -v @@ | sed 1,2d",
filename1, filename2); filename1, filename2);
if (system(cbuf_get(cb)) < 0) if (system(cbuf_get(cb)) < 0)
goto done; goto done;