Ticket #24525: patch-use_coreutils.diff

File patch-use_coreutils.diff, 1.4 KB (added by evangoldenberg@…, 14 years ago)

patch renameutils to use coreutils programs

  • src/apply.c

    old new perform_command(FileSpec *spec) 
    7272    if (force_command != NULL)
    7373        command = force_command;
    7474    else if (strcmp(program, "qmv") == 0)
    75         command = "mv";
     75        command = "gmv";
    7676    else
    77         command = "cp";
     77        command = "gcp";
    7878
    7979    child = fork();
    8080    if (child < 0) {
  • src/icmd.c

    old new  
    4545#include "common/string-utils.h"
    4646#include "common/common.h"
    4747
    48 #define MV_COMMAND "mv"
    49 #define CP_COMMAND "cp"
     48#define MV_COMMAND "gmv"
     49#define CP_COMMAND "gcp"
    5050/* This list should be up to date with mv and cp!
    5151 * It was last updated on 2007-11-30 for
    5252 * Debian coreutils 5.97-5.4 in unstable.
  • src/list.c

    old new list_files(char **args) 
    311311    ls_args_list = llist_clone(ls_options);     /* llist_add_all! */
    312312    llist_add_last(ls_args_list, "--");
    313313    llist_add_first(ls_args_list, "--quoting-style=c");
    314     llist_add_first(ls_args_list, "ls");
     314    llist_add_first(ls_args_list, "gls");
    315315
    316316    if (llist_contains(ls_options, "--directory")) {
    317317        firstdir = ".";
    run_ls(char **args, pid_t *ls_pid, int *ls_fd) 
    411411            die(_("cannot close file: %s"), errstr);
    412412        if (dup2(child_pipe[1], STDOUT_FILENO) == -1)
    413413            die(_("cannot duplicate file descriptor: %s"), errstr);
    414         execvp("ls", args);
     414        execvp("gls", args);
    415415        die(_("cannot execute `ls': %s"), errstr);
    416416    }
    417417    *ls_pid = child_pid;