From 2d2a0c83116316f438ec8ca63f6860a0f4622b40 Mon Sep 17 00:00:00 2001 From: Dan Hipschman Date: Thu, 25 Jan 2007 21:56:32 +0100 Subject: * src/sort.c (create_temp): Remove superfluous access-X_OK check. find_in_path does this for us. --- ChangeLog | 5 +++++ src/sort.c | 7 +------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 10e5f3e23..666fd9678 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-01-25 Dan Hipschman + + * src/sort.c (create_temp): Remove superfluous access-X_OK + check. find_in_path does this for us. + 2007-01-24 Jim Meyering Remove usually-skipped test. diff --git a/src/sort.c b/src/sort.c index bab232b74..c7ae0c8c0 100644 --- a/src/sort.c +++ b/src/sort.c @@ -853,12 +853,7 @@ create_temp (FILE **pfp, pid_t *ppid) const char *path_program = find_in_path (default_program); if (path_program != default_program) - { - if (access (path_program, X_OK) == 0) - compress_program = path_program; - else - free ((char *) path_program); - } + compress_program = path_program; } else if (*compress_program == '\0') compress_program = NULL; -- cgit v1.2.3-70-g09d2