View | Details | Raw Unified | Return to bug 17386
Collapse All | Expand All

(-)file.c (-2 / +2 lines)
Lines 412-420 Link Here
412
    char cmd[FILENAME_MAX];
412
    char cmd[FILENAME_MAX];
413
413
414
    if (fname[0] == '/')
414
    if (fname[0] == '/')
415
	snprintf(cmd, FILENAME_MAX, "cp -p -r %s %s", fname, to);
415
	snprintf(cmd, FILENAME_MAX, "cp -R %s %s", fname, to);
416
    else
416
    else
417
	snprintf(cmd, FILENAME_MAX, "cp -p -r %s/%s %s", dir, fname, to);
417
	snprintf(cmd, FILENAME_MAX, "cp -R %s/%s %s", dir, fname, to);
418
    if (vsystem(cmd)) {
418
    if (vsystem(cmd)) {
419
	cleanup(0);
419
	cleanup(0);
420
	errx(2, "could not perform '%s'", cmd);
420
	errx(2, "could not perform '%s'", cmd);

Return to bug 17386