Lines Matching refs:argv
61 * argv[1] - dstActual (the path to the file that will be replaced)
62 * argv[2] - tmp_file (the temporary location to which the file will be
64 * argv[3] - tmpDst (the path to the replacement file)
65 * argv[4] - tmpFile (the path to a temporary copy of the running system's
68 * argv[5] - cksumTmpDst (checksum of the file represented by tmpDst)
69 * argv[6] - cksumTmpFile (checksum of the file represented by tmpFile)
71 * NOTE: This program will only establish an overlay mount if argv[4] or argv[5]
72 * is emtpy or if argv[4] and argv[5] differ.
78 main(int argc, char **argv)
88 "tmpFile cksumTmpDst cksumTmpFile\n", argv[0]);
99 if (rename(argv[1], argv[2]) != 0)
101 if (rename(argv[3], argv[1]) != 0)
109 if (stat(argv[4], &statbuf) == 0 && (statbuf.st_mode & S_IFREG)) {
114 if (argv[5][0] == '\0' || argv[6][0] == '\0' ||
115 strcmp(argv[5], argv[6]) != 0) {
117 if (mount(argv[4], argv[1], MS_OVERLAY | MS_OPTIONSTR,
128 "overlay mount %s onto %s\n", argv[4],
129 argv[1]);
137 (void) unlink(argv[4]);