Ticket #24525: patch-use_coreutils.diff
File patch-use_coreutils.diff, 1.4 KB (added by evangoldenberg@…, 15 years ago) |
---|
-
src/apply.c
old new perform_command(FileSpec *spec) 72 72 if (force_command != NULL) 73 73 command = force_command; 74 74 else if (strcmp(program, "qmv") == 0) 75 command = " mv";75 command = "gmv"; 76 76 else 77 command = " cp";77 command = "gcp"; 78 78 79 79 child = fork(); 80 80 if (child < 0) { -
src/icmd.c
old new 45 45 #include "common/string-utils.h" 46 46 #include "common/common.h" 47 47 48 #define MV_COMMAND " mv"49 #define CP_COMMAND " cp"48 #define MV_COMMAND "gmv" 49 #define CP_COMMAND "gcp" 50 50 /* This list should be up to date with mv and cp! 51 51 * It was last updated on 2007-11-30 for 52 52 * Debian coreutils 5.97-5.4 in unstable. -
src/list.c
old new list_files(char **args) 311 311 ls_args_list = llist_clone(ls_options); /* llist_add_all! */ 312 312 llist_add_last(ls_args_list, "--"); 313 313 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"); 315 315 316 316 if (llist_contains(ls_options, "--directory")) { 317 317 firstdir = "."; … … run_ls(char **args, pid_t *ls_pid, int *ls_fd) 411 411 die(_("cannot close file: %s"), errstr); 412 412 if (dup2(child_pipe[1], STDOUT_FILENO) == -1) 413 413 die(_("cannot duplicate file descriptor: %s"), errstr); 414 execvp(" ls", args);414 execvp("gls", args); 415 415 die(_("cannot execute `ls': %s"), errstr); 416 416 } 417 417 *ls_pid = child_pid;