Lines Matching refs:existing
192 linkit(char *existing, char *new, int type)
200 if (!Nflag && symlink(existing, new) < 0) {
203 new, existing, strerror(errno));
209 if (!Nflag && (ret = link(existing, new)) < 0) {
216 if (stat(existing, &s) == 0 && s.st_flags != 0 &&
217 chflags(existing, 0) == 0) {
218 ret = link(existing, new);
219 chflags(existing, s.st_flags);
224 new, existing, strerror(errno));
233 type == SYMLINK ? "symbolic" : "hard", new, existing);