version 1.39, 2014/11/15 16:35:47 |
version 1.40, 2014/11/22 15:49:28 |
|
|
} |
} |
if (statfailed && check_only) |
if (statfailed && check_only) |
fatal("%s not found, -C mode, can't probe further\n", filename); |
fatal("%s not found, -C mode, can't probe further\n", filename); |
/* For nonexistent or read-only files, look for RCS or SCCS versions. */ |
/* For nonexistent or read-only files, look for RCS versions. */ |
if (statfailed || |
if (statfailed || |
/* No one can write to it. */ |
/* No one can write to it. */ |
(filestat.st_mode & 0222) == 0 || |
(filestat.st_mode & 0222) == 0 || |
|
|
snprintf(buf, sizeof buf, CHECKOUT, filename); |
snprintf(buf, sizeof buf, CHECKOUT, filename); |
snprintf(lbuf, sizeof lbuf, RCSDIFF, filename); |
snprintf(lbuf, sizeof lbuf, RCSDIFF, filename); |
cs = "RCS"; |
cs = "RCS"; |
} else if (try("%s/SCCS/%s%s", filedir, SCCSPREFIX, filebase) || |
|
try("%s/%s%s", filedir, SCCSPREFIX, filebase)) { |
|
snprintf(buf, sizeof buf, GET, s); |
|
snprintf(lbuf, sizeof lbuf, SCCSDIFF, s, filename); |
|
cs = "SCCS"; |
|
} else if (statfailed) |
} else if (statfailed) |
fatal("can't find %s\n", filename); |
fatal("can't find %s\n", filename); |
/* |
/* |